User Tools

Site Tools


project:laser_light_sensor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
project:laser_light_sensor [2015/06/27 21:39]
dp [Stripboard]
project:laser_light_sensor [2015/07/14 13:17] (current)
dp [Light diffuser]
Line 17: Line 17:
  
 ===== Arduino ===== ===== Arduino =====
-It's recommended to test the circuit on Arduino first. You will have serial monitor available and you will be able to read LDR readings and further fine-tune the code or components.+It's recommended to test the circuit on Arduino first. You will have serial monitor available and will be able to see LDR values and further fine-tune the code or components.
  
 ==== Arduino schematic ==== ==== Arduino schematic ====
Line 70: Line 70:
  
 ===== ATtiny (shrinking the sensor) ===== ===== ATtiny (shrinking the sensor) =====
-Now that we have tested everything, we can port it to ATtiny microcontroller (tested on ATtiny45, ATtiny85), which has significantly smaller profile, its cheaper and works on 3V. +Now that we have tested everything, we can port it to ATtiny microcontroller (tested with ATtiny45, ATtiny85), which has significantly smaller profile, its cheaper and works on 3V. 
  
 ==== Programming an ATtiny with Arduino ==== ==== Programming an ATtiny with Arduino ====
Line 90: Line 90:
 int LDRValue = 0;           // variable to store LDR values int LDRValue = 0;           // variable to store LDR values
 int threshold;              // light sensitivity threshold int threshold;              // light sensitivity threshold
-float voltage;              // variable to store voltage 
  
 void setup() void setup()
Line 130: Line 129:
  
 ==== Light diffuser ==== ==== Light diffuser ====
-Cover the LDRs with semi-transparent material to act as light diffuser. Doing this will make sensor sensitive over bigger area. Also leave enough space between LDRs and diffuser for light to spread. You can use ping pong ball for this.+Cover the LDRs with semi-transparent material to act as light diffuser. Doing this will make sensor sensitive over bigger area. Also leave enough space between LDRs and diffuser for light to spread. You can use ping pong ball, or ball from vending machine.
    
 ===== Tips ===== ===== Tips =====
project/laser_light_sensor.1435433979.txt.gz ยท Last modified: 2015/06/27 21:39 by dp