What's new
Pinball info

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Arduino sketch on ATtiny85

Perky

Registered
Joined
Jul 17, 2021
Messages
15
Location
Uk
Firstly let me state that I'm pretty new to electronics so I could be doing something completely daft! ... I know there's a lot of clever electronics guys on here so if anybody could point me in the right direction, it would really be appreciated.

I've been teaching myself how to use arduino boards and have read that the same code should also run on an ATtiny85, which can be programmed from the arduino if it's set up as an in-system programmer. I've managed to do this and successfully tested with some "stock" arduino sketches. However when I have tried some "simple" (small file size) led dimming code (based on a finite state machine that works fine on a nano), it doesn't work. There aren't any error messages, it just doesn't work. I can't seem to find a list of supported commands for ATtiny85 in relation to the Arduino IDE so I'm guessing it's more complicated than that. Does anyone have any suggestions of where I can start to look for further info? - or equally, feel free to tell me I'm trying to run before learning to walk!

Thanks
 
You need to set the target and that means many libraries aren't supported. Some things should work but those that rely on timers etc. may not.

Make sure you have AVR boards loaded and you may need to add more libraries. All makes sense when you think about things.

David
 
Thanks David, appreciate the response. I'll do some more digging around the timer aspects and any relevant libraries.

...it doesn't make sense yet so I guess I need to think about it a bit more 🤣
 
Back
Top Bottom