This week I make temprature sensor board(it did not work) and phototransistor board.
I made a temprature board.I refer Hello.temp board.
I designed by eagle.like below.
I milled by SRM-20.
I mistook one time.My out line image is not same position as trace image.I Adjust manually.then suceed.
This is a result
I solderd it.components is below.
I usehello.temp.cand hello.temp.py.
hello.temp.py launch,but it doesnot work.
I made light sensor using phototransistor.I tried to make cirkit board from corper tape by vinyl cutter.
Parameter is below.I could cut in that setting,but the thin part shifted.I tried many settings many times.
Finaly I use setting below.And I applied the masking tape to tape and turned it over and cut it.
Resolution is below.I succeed.
I solderd.I planed to paste it to a sphere, so I did not paste it that time.
I used processor board I made for final project.
Test code is below
int light_val = 0; void setup() { Serial.begin(9600); } void loop() { light_val = analogRead (2); light_val = map(value, 0, 100, 0, 1023); Serial.println(value); delay(1000); }
It succeed.I use this for final project.when it become dark,the sensor senses,then light turn on.
#define TEMP_SENSORPIN (0) #define LIGHT_SENSORPIN (1) #define LED_PIN 2 int light_on = 20; int light_off = light_on +100; //for CO2 int prevVal = LOW; long th, tl, h, l, ppm; void setup() { Serial.begin(9600); pinMode(LED_PIN, OUTPUT); Serial.println("Setting..."); } void loop() { //mesure light digitalWrite(3, HIGH); int light_val = analogRead( LIGHT_SENSORPIN ); int light = map(light_val, 0, 100, 0, 1023); Serial.print("light"); Serial.println(light); //swich light if (light > light_on ) {//if light sensor val shows daker than light_on threshold digitalWrite(LED_PIN, HIGH); }else{ if(light < light_off){ digitalWrite(LED_PIN, LOW); } } delay(1000); }