I choose to make a version of the Neil's Hello light board plus an a LED, in order to control the Fading function inversely proportional to the environmental light.
After several attempt, including one board not giving back any feedback, and one not receiving data from the sensor due to a not “consistence” issue between schematic and board in Eagle, I found the design that seems to be the correct one
I exported the board's design in a 1000dpi monochrome .png image from Eagle and I opened it in Gimp to drawn a cutout contour and add my logo.
I milled it using Fab modules and Roland Modela as described in the electronic design week documentation.
I went on programming the board using the Neil's Hello.light C code, to have a first feedback, as shown in Francesca's web site . Not without any trouble with Windows7 compatible softwares.And from the folder in wich I was saving all my programs I Flash the new Light.meIII board. !
But once open the .py program I found the bar graphics not moving. There were not measuring data coming back from the sensor.
To test Light.me III board I used Arduino IDE by flashing first a Blink program and than adapting the AnalogInput example. Unfortunately was not so easy as it seams. Sometimes Arduino IDE was giving me back that error:
every time with different values, randomly, even trying to programming different board with different examples After a long and confused research I realized that is a USBtiny Programmer failure message. I have to make a new programmer ASAP!
Anyway I reach a goal!
Looks like the sensor is well connected but no so sensitive.
Stating from the code just flashed I triyed to add a Serial Monitoring sequence:
( reading “ as <)
I triyed to add a Serial Monitoring sequence in the code: but even including the
Has specified here, I re-defined the chars
In that way I didn't received back any error message,and the LED is blinking reacting to the light until the Serial Monitor windows is closed.Opening the Serial monitor the led stops and no data appear in the window
Upgrading Arduino IDE to 1.6.3 version Tools setting was no able to find any PORT! The compiler was acting without give back any error until I opened serial monitor. I had to download Arduino 1.0.5 IDE zip. version to be able to program my board.
Finally I found a design error. A wire connecting RST micro controller's pin with RTS into FTDI.
Cut that wire I went back toi check the board with Neil's Hello.light.45.c program and finally running the hello.light.45.py program I saw the Data FLOW.
Back to Arduino IDE I was still in trouble. Serial monitor was still empty. But that time I had confirm that is just a code error. Asking help to Santy we start together minimalizing the code to the only Serial monitor definition. Checking in an “experimental” way the pins attributions we find the “magic code”!
That make the Serial monitor comes ALIVE. Basically we recognize that even with different wire connection ( in Light.meIII RX connection is on pin 2 an there is not TX connection to FTDI) Arduino IDE recognize just those 2 pins as “exchanger” that is quite different from the reference scheme that I was using.
As planed designing the Hello.me Board during the electronic design week, I tried to tuned the ready made board changing the switch button with a light sensor with is relative resistor.
I test it first with Arduino's Fade exemple in order to verify if every connection had been restored.Than i tried with AnalogInput example finding that led blinking were not responding to light exposure. Than I tested it using Neil's Hello World C program, as shown in Francesca's web site and everything was going well.
Having a look at the code I realised that is necessary reset the A/D sequence.
I checked the Attiny 45 data sheet looking for ADMUX and I found the ADMUX – ADC Multiplexer Selection Register :
and I compared it with Attiny 44 data sheet
Finding that there is not REFS2 bit in attiny 44. SO i just tried to take it off the code. And re-flash the Hello.me board:
But running the hello.ftdi.44.light.py program it gave me back a white window...
Double checking the board I realized that the button design is not compatible with che light transistor+resistor scheme and I gave it up ...for the moment
dowload file:eagles files_ png files_arduino_