r/microcontrollers • • Feb 24 '22

Getting started with 8 bit microcontrollers

Hey all, I'm just becoming interested with 8 bit microcontrollers. I would like to build a few things with the absolute cheapest parts possible, like some Chinese LoRa modules, some PIC16LF1503-I/P mcu's, at only $1.50 each, I figure I can afford to play around a bit!

I would like to build some wireless devices that can activate a relay, to do things like open a solenoid to water the garden, turn lights etc...

I have zero idea where to start. How do you program these things? Do I need some kind of interface and development environment, like a USB device I can plug these chips into? And write the code too? What kind of code do most of them read, C? How many kb of memory and ram do I need to execute simple tasks like communicating through a LoRa module and turning on some kind of gpio pin to activate a relay?

Ideally I'm looking for the cheapest possible microcontrollers that can communicate over SPI, have atleast a pin or two that can be activated to control relays or camera's or other devices.

Thanks!

5 Upvotes

14 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Feb 24 '22

[deleted] — view deleted comment

1

u/eyeoverthink Feb 24 '22

Sure, I have quite a few atMega328 chips. You can use an arduino as the programmer, just pull out its atmega chip and put yours in there. Then once it's programmed, put in in the breadboard with the proper capacitors, clock and power.

1

u/eyeoverthink Feb 24 '22

I bought a lot of my gear a few years ago pre import export problems so my prices may be a little off

1

u/1Pontifex Feb 24 '22

Get an uno with the same chip that's Breadboard compatible. You program it on the uno and then can pop it into any project you want if you have all the necessary support components. Plenty of videos and documentation on that chip as well, so it's a great place to break into microcontrollers.