Create an on/off switch (tact, toggle, slide, tilt or other)
Also create an analog sensor (potentiometer, capacitive touch, other)
Show at least 3 iterations (drawings, prototypes) before making the final paper sensor in black cardboard
All the nodes should work as series, none can take visual supremacy
The sensors shown in class are the point of departure for the series. You can recreate the technical circuit but not the form
Program a Node MCU to read the values with the serial plotter
Change an LED’s brightness depending on switch & sensor values
For this week, we are using a Node MCU and a breadboard. The Node MCU is an open-sourced firmware development kit. You can program code to manipulate electronics. One way to connect the Node MCU to electricity, is a breadboard. A breadboard is a switchboard where electronics can be attached to.
The Node MCU uses digital ports and analog ports to read out information. The software we use to upload code to the Node MCU is called Arduino.
Because Kaz and I are working seperately, I am focussing on making Switches, and Kaz on analog sensors.
Loes showed us some awesome examples of switches, and I took some inspiration of them. The goal is to make these switches with
black cardboard
copper tape
paper clip pins
LED
For my first switch design, I wanted to use the herring grate origami pattern to fold a piece of paper. The goal is to pinch te paper, so the planes of the origami touch. When these planes are attached to copper tape and the paper clip pins, the circuit will be completed and the LED I attached on the circuit will light up.
To make the pattern on the piece of paper, I used the laser cutter to make dotted folding lines. I used 20% of the laser capacity, and made 2mm dots with 1 mm intervals. To give the structure more rigidity, I cut out holes on the corners of the folds. I used 50% of the laser capacity to do so.
When I tried to fold the material, I quickly discovered that the paper is too small to support the folds. The paper is also too thick, so it would break if I tried to make complex folding patterns.
Because I had no access to the makers lab anymore, I decided to simplify the design. I only used the vertical lines I made, and cut out the center planes in a rectangular shape. On both sides I attached copper tape. When the paper is pinched, the copper tapes will touch.
This switch is an 'always open' switch, because the two sides don't touch when idle. They can only make contact when you activate the switch (pinch), and will retract when you let loose.
Now I can attach the design to my Node MCU. It is attached to a breadboard, so I can connect the switch and LED to it.
To illustrate the functioning of the switch, I've made a schematic.
Ultimately, when I attached my Node MCU to a power source, the design worked perfectly. When I pinch the paper, the two copper tapes touch and they complete the circuit, just like a switch.
In class, the day before the schools closed the doors because of the corona virus, we made a crystal that is conductive. Loes showed her own crystal sensor and I really wanted to make one myself. So at first I started to build a capacitive sensor with a conductive crystal, but later on I also tried different conductive materials. This setup works with every conductive object.
I just can't seem to get the setup to work. To my idea I've checked everything. I've checked if I've put USB
behind every serial
. I've checked if the I had connected the wires in the right way to setup the circuit. I've swapped the wires for other wires, to check if the wires are broken. After that I checked if the it works without the conductive crystal, so just with the paperclip. But the paperclip unfortunately doesn't work either, so I can't conclude that the crystal doesn't work.
The black wire looks like it isn't connected, but it is. It is connected to the same copper tape as the conductive crystal. The copper tape is one piece of tape that's also on a little bit on the back of the piece of paper. I made sure that its one piece, otherwise it wouldn't work.
When I was unwiring the circuit I still had my Serial Monitor open and it suddenly showed values. After looking at the wires one last time I saw I didn't make a mistake following the instructions. I recognized a mistake, the only thing I had to do was swap the wires connected in pin 3 and 4.
The code works, just this comment should be changed to this:
After this the setup worked (without the conductive crystal connected, just the paperclip) I could finally conclude that the crystal doesn't work.
At the show and tell I showed the sensor and told all the debugging I've done in the last week. After talking with Loes at the show and tell we came to the conclusion to solder the copper wire to the copper tape. So the copper wire and copper tape have better connection. In my design the copper tape makes the connection to my sensor, the copper wire. It's important to have no flaws there.
After soldering the copper wire to the copper tape I had a bit better results, but not as great as it needs to. I completely missed the part where I had to use 1 - 10M ohm resistance. The whole time building the multiple capacitive sensors I used 40k ohm. 40k ohm was the maximal amount of resistance I could create with the resistances I took with me before the school was closed, because of the corona virus.
I had many problems with attaching my LDR sensor to my Node MCU. To begin; I didn't have a regular LDR sensor. Luckily, I had some older sensors from a previous course I followed. When I tried to attach my node MCU to my pc, I got various errors. My serial write wouldn't work, and my board wouldn't connect. I asked Loes for help, and after some resets it appeared to work again.
After some iterations in my code, it stopped working again. Then I decided to use my Grove Node MCU. This one worked perfectly. I attached a light sensor to the AO, and found some code on a forum to make it work:
I could read the values of the sensor in the serial monitor. I set it manualy to 115200 baud. Here are the values I received:
This assignment was really annoying for me. I've worked with Arduino and node MCU's before, and it always worked perfectly. This time around, I faced many unforeseen problems. Luckily Loes could help me out at some of my problems, but most of them kept reappearing for no clear reason. Then I decided to use my grove MCU board, and this one worked perfect. I really like to work with the hardware and to experiment with different pieces of code, but debugging really sucks. I learned to be patient and to carefully look for the root of the problem.