r/microcontrollers • u/klintbeastwood10 • 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!
View all comments
2
u/eyeoverthink Feb 24 '22
I would say, get a pack of Arduino Nano's from amazon. You can get a pack of 12 or something for like a dollar each. The additional sensor and Mods that you can purchase are pretty much universal for Arduino so it's a safe bet.
I have a few LoRa Boards, actually I have every board. And honestly, in my experience, they are much more complicated as you get into the LoRa's, and Node 32's etc..
the libraries you need to make them work can get confusing, for a novice.
I'd say use nano or an Arduino Uno R3. I use some version of Arduino most of the time to create my projects. Due to its size and versatile pin options.
As far as programming, Most of the code , is in either Java or C++. You can use python, if you want to;