Timeline for attiny85 and arduino - analogRead + pwmOut
Current License: CC BY-SA 3.0
18 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 14, 2018 at 15:00 | history | tweeted | twitter.com/StackArduino/status/1073593606970241024 | ||
| Mar 6, 2015 at 22:58 | history | edited | Peter Bloomfield |
edited tags
|
|
| Mar 11, 2014 at 17:54 | answer | added | GradeSchool | timeline score: 4 | |
| Mar 10, 2014 at 8:18 | answer | added | Cybergibbons | timeline score: 8 | |
| Mar 10, 2014 at 4:15 | history | edited | asheeshr | CC BY-SA 3.0 |
grammar;
|
| Mar 9, 2014 at 22:02 | comment | added | jippie | Could you throw in some capitals in your text to improve readability? Also a proper circuit diagram, rather than a wiring diagram would help a lot. | |
| Mar 9, 2014 at 21:08 | comment | added | GradeSchool | i tried to do that, but this site won't let me for like 8 more hours. i will do so as soon as i can. | |
| Mar 9, 2014 at 20:54 | comment | added | Peter Bloomfield | @GradeSchool It would be helpful if you could write your solution as an actual answer, so that future visitors can find it more easily. Thanks! | |
| Mar 9, 2014 at 20:36 | comment | added | GradeSchool | just to clarify - the adc input on the attiny85 is 10bit. the pwm output is 8bit. thus the map(). | |
| Mar 9, 2014 at 20:35 | comment | added | GradeSchool | it works fine. btw i am using the internal 8mhz - attiny85. also using arduino-tiny core. thanks for all your suggestions. | |
| Mar 9, 2014 at 20:33 | comment | added | GradeSchool |
i needed to re-range the input to 8 bit. analogIn = map(analogIn, 0, 1023, 0, 255);
|
|
| Mar 9, 2014 at 19:12 | comment | added | sachleen | Did your multimeter read 3.85v after the low pass filter? (so right on the Micro's input pin) | |
| Mar 9, 2014 at 19:11 | comment | added | jfpoilpret |
Did you try to add a short delay in your loop? What may happen is that your loop is running too fast, and each new analogWrite() call would "reset" the PWM of the pin, making it always up (no time to use PWM). I would try delay(1000) for a start.
|
|
| Mar 9, 2014 at 19:08 | review | First posts | |||
| Mar 10, 2014 at 1:32 | |||||
| Mar 9, 2014 at 19:06 | comment | added | sachleen | @jfpoilpret yeah you have a few choices for using the internal clock. | |
| Mar 9, 2014 at 19:05 | comment | added | jfpoilpret | I don't see any clock (quartz or ceramic resonator) for your ATtiny, is this normal? | |
| Mar 9, 2014 at 18:58 | comment | added | jfpoilpret | A schematic of your circuit would probably be more helpful than an implementation schema with a breadboard. Do you have such a schematic? If yes, add it to your question. | |
| Mar 9, 2014 at 18:53 | history | asked | GradeSchool | CC BY-SA 3.0 |