Please help I want to put the following sketch onto a Atiny85 but I cant work out what connections to make on the Atiny.
I have tried everything but cant get it to work! I mybe missing some code that I need to get it to run on a Atiny or just not wiring up correctly. Thanks for all your help in advance.
PS
My project was to build warning lights (2 or 3) showing at low temps when on my motor bike this winter (black ice warning!) 8c 5c 0c
/*
temp lights using Atiny85 & LM35
*/
int tempPin = A0;
int led01 = 2;
int led02 = 3;
int led03 = 4;
int tempMax = 32;
int tempMin = 5;
int temp;
Please supply more information.
In what way does it not work? What does happen?
How is it wired?
Which ATtiny core is being used?
Is the ATtiny being programmed successfully (which programmer)?
Clock speed and operating voltage are good to know as well.
When posting code, use code tags (# symbol while composing) so the code looks
I am using a Uno board to program the ATtiny85 chip all goes well.
Wiring in the problem I think and maybe some code missing. Don't know were to put the output data wire from the LM35 temp sensor & which pins to use to trigger the led lights. Seems I am missing some code as I can't get the data input to talk to the LEDs. if I connect pin 2 with the data output from the LM35 pin 7 goes live and the led will light but the temp change does not turn off etc. Please help I must be doing something so stupid I can't see it. Tried for 3 days to get this to work. All OK when I run the sketch on the Arduino Uno board.
Thanks in advance for your help!