INPUT DEVICES

For this week, I explored 2 input devices. The Push Button and the Ultrasonic Sensor. I used the hello board for both the sensors. I used an FTDI cable for the serial output and was able to see when I pushed the button.
 

Ultrasonic Sensor

 
For the Ultrasonic sensor, I used the pins from the MOSI and MISO used early on by the FabISP. I wrote a simple programme such that the LED would blink when my hand goes over the sensor. Below is the video of it working.
 

Next I tried to do a serial write of the distance. but the arduino IDE gave a compilation error that my sketch was too big. I would need to debug the programme.

The sketch could be downloaded from the link below

https://www.dropbox.com/sh/v138wly2edj6ywe/AAAz05hOPRMaLPD3T00AyPUia?dl=0

or

local Archive

 

 
Sketch too Big!  

 

Phototransistor

 
I am going to make a phototransistor board with an onboard LED. Work first begins on the eagle board followed by PCB milling and stuffing the board.
Phototransistor Schematic Board Layout
Phototransistor board with LED
 
I then went on to write 2 programmes. The 1st program, the LED will turn off with Light is is flashed on the phototransistor.
The second program outputs the sensor pwm data using serial. The LED is made to flash to indicate that the program is running.

 

The Eagle CAD and programs can be downloaded from

https://www.dropbox.com/sh/v138wly2edj6ywe/AAAz05hOPRMaLPD3T00AyPUia?dl=0

or

Local Archive