Introduction to
Physical computing
(Pcomp) - NYU ITP
Duban Morales
week 08
Date 11/05/2024
Final
Duban Morales
week 08
Date 11/05/2024
2 Way Serial Communication
Duban Morales
week 07
Date 10/29/2024
Serial Communication & Arduino to P5JS
Duban Morales
week 04-06
Date 10/22/2024
Midterm Development - Shopping Cart
https://phrygian-alyssum-bdd.notion.site/Week-7-10-22-2024-127148447c0c80a6ac56fcade47a1edb?pvs=4
Shopping Cart Video Game
We initially planned to modify the handle of the shopping cart to attach a two-way switch joystick, allowing us to implement forward and backward movement. We also considered fabricating the cart to sit on a robot arm and adding a rotary encoder for left and right movement. However, we quickly realized that this approach wasn't feasible within the project’s timeframe.
After consulting with a professor, they recommended using a Hall effect sensor, which returns a value of 0 or 1. Originally, we thought about adding more sensors and magnets to the shopping cart wheel, but this scrambled the data sent to the Arduino. The sensor data wasn't being sent in the expected order, which caused the program to misinterpret whether the cart was moving forward or backward. We then decided to simplify by removing the multiple magnets and keeping just one, adjusting the code to work with this configuration.
To detect left and right movement, we added an extension to one of the front wheels, which is on a swivel. By programming a couple of Hall effect sensors on a radius where the arm extension swings in a circular motion, we could program each sensor to detect whether the cart was moving left or right.
Duban Morales
week 03
Date 09/24/2024
LABS - Tone Output & Servo Motor Control
I was having trouble hearing any sound from the speaker, and I was sure I had everything connected correctly. So, I thought maybe using a smaller resistor for the speaker would help. It turns out I had a 10k ohm resistor connected to the speaker, which wasn’t allowing enough power for the speaker to produce sound.
wrong resistor (10,000ohms) connected to speakerworking- changed resistor to 100ohms
I ran into a problem when trying to import pitches.h into the script. The lower FSR in the image was working, but when I added the second FSR, it didn’t produce any sound. I followed the steps carefully but couldn't figure out the issue.
I moved on to the servo motor lab and didn’t run into any issues. However, I was concerned because the schematic diagrams used a 10μF capacitor, which I didn’t have on hand. Despite that, I proceeded with the lab, and everything worked fine in the end.
schematic diagrams used a 10μF capacitor
Duban Morales
week 01
Date 09/07/2024
LABS- Components, Electronics, Multimeter & switches
Symbols in schematic diagrams.
Prior to these labs, I had no knowledge of anything related to physical computing...
I still do not.
Getting started, I headed to campus and picked up the components I needed for these labs. I did not have a power supply to continue and the shop was closed. I picked one up on my way home. Checking the one I got was giving the correct output.Wiring the DC power jack to the jumper wires, the AC adapter i bought has different tip sizes and although the largest one fit. it was not working properly with the DC power jack.Double checking voltage regulator to make sure I was getting the correct output. Let there be LIGHT ! Long Legs in LED go into voltage
and the short goes into ground.A switch LED circuitBy pressing the switch the circuit is getting completed allowing the resistor and LED to begin consuming electricityEach LED takes about 2 volts, a 3rd LED can not be added because the voltage regulator only outputs around 5.I did not Sodder the wires to the Potentiometer. I hoped it would work by just letting them rest in the correct place. also, for future reference the (wiper?) middle wire in potentiometer should be a different color.Any button or switch will turn the LED on removing the passthrough wiresOnly the yellow button turns on the LED, because the passthrough wire is connecting the pins on only that button now ? but the wires are still connected to one side of the red and blue buttons ?
Duban Morales
week 02
Date 09/17/2024