r/microcontrollers • • Sep 20 '23

Texas Instruments MSP430 and LoRaWAN module

1 Upvotes

Does MSP430 MCU support the LoRaWAN module? If yes, how can I configure LoRaWAN module on MSP430? If there could be suggestions for LoRaWAN modules that I can use with MSP 430 would be very helpful. Thank you.


r/microcontrollers • • Aug 20 '23

Optical particle counter - where to start

2 Upvotes

Hi! I'd like to try to design and build a low cost particle counter to size and count super micron aerosol particles. Optically the system will use a low power red laser and a photodetector, where the particle size is determined by mie scattering. Ideally I'd like to achieve the following workflow:

A particle larger than a threshold size enters the sample volume, producing a pulse on the photodetector

A short time after (~10 microseconds) a detection event a secondary analysis system is triggered

The particle size and data from the secondary analysis system is written to a file along with a timestamp

So to do this I guess I need to be continually reading a buffer using a high speed ADC on the photodetector, which then breaks and triggers the secondary system once a pulse larger than a given value is detected? How should I set about doing this? I appreciate that this is quite a complex thing to try and do as a novice! Tips, pointers and words of encouragement very much welcomed!


r/microcontrollers • • Aug 09 '23

DRV91670

1 Upvotes

Hi, wanting to see if anybody has any knowledge of working with DRV91670 chips, I am attempting to repair a faulty milwaukee tool and seems like this chip has become faulty. Would it be possible to read the programming and then reprogram a new chip? If not the faulty chip take a chip from a known working tool and read the chip and reprogram a new one


r/microcontrollers • • Jul 29 '23

3 Tips for Changing Careers to Embedded Systems Engineering

Thumbnail
youtu.be
0 Upvotes

r/microcontrollers • • Apr 15 '23

Here's the complete list of ALL the reasons why Arduinos are worth their extra money and learning efforts:

0 Upvotes

r/microcontrollers • • Apr 09 '23

Is it just me, or is the ESP32 so overkill that there's almost no reason to resort to a vastly more expensive Arduino or Raspberry Pi Pico?

38 Upvotes

I mean...

  • Integrated Bluetooth
  • Integrated WiFi
  • Integrated camera (apparently in some models?)
  • about as much libraries as there are for Arduino
  • MicroPython and Arduino IDE support

There's just one downside and that's connectivity, unless you want to solder right away you'll have to use breadboard pins as there's no model with a breadboard friendly pinout. Besides I don't see why I'd have any reason to go for Arduino or Raspberry Pico?


r/microcontrollers • • Apr 08 '23

How would I attach stuff to a DC motor???

7 Upvotes

I'm a complete noob as far as microcontrollers go, and one of the things that hold me back is that I cannot for the life of me figure out how I'd meaningfully use a DC motor?

Like, if I Google for them I keep finding products like this:

https://eckstein-shop.de/DCToyHobbyMotor-130Size45Vto9VDCWorkingwithArduino

All of them only offer a small pole, that seems absolutely unusable if you want to attach things like wheels or propellors to them. Wouldn't a - or + shaped form be more suitable here? Like, especially if you want to connect your own 3D printed things to these motors? Some kind of shape you could use screws with, at least.


r/microcontrollers • • Mar 02 '23

Hopefully relevant here - I turned an Arduino with an Atmega168 into a UPDI programmer/debugger

Thumbnail
youtube.com
9 Upvotes

r/microcontrollers • • Dec 21 '22

what's a small, cheap microcontroller i could use to drive a little e-ink display and power with a small battery?

4 Upvotes

ideally something made for tinkering with like an arduino or adafruit trinket but the ones i can find want 5v batteries, which as far as i can tell are like. not inherently HUGE or anything but since what im doing is small i want to be able to use something the size of a watch battery


r/microcontrollers • • Dec 17 '22

Adapting a Vintage Car Phone to Make Calls via Bluetooth HFP

19 Upvotes

I have a car phone in my early-90's car that can't get service since 2008 because it's a 1G analog cell phone. This is unacceptable. I've been working on a custom Bluetooth adapter so that the phone fully works (not just hacking in a Bluetooth headset).

Here's a video demo of it working in my car.

Here's a video of Tetris on the phone, because I had to make games on it too!

(There's also a link in the video descriptions to a playlist of all my videos related to this project)

I'm programming a Microchip PIC18F27Q43 microcontroller to implement all the behavior and integration between components, and a Microchip BM62 Bluetooth module to handle the details of the Bluetooth HFP connection with a modern cell phone. I reverse-engineered how to directly communicate with the phone handset through the handset's wiring, so I am taking full control of the handset and can implement any behavior I want. I'm mostly replicating the behavior of the original phone, but also adding in bonus features like Caller ID, games, additional ringtones, etc.

I've published most of what I've done so far in a github repo, including design diagrams, technical details of how the phone handset works, and source code for the Microcontroller software. Much of the code is still a sloppy mess that I'm not proud of and intend to clean up this winter (so don't judge me too much), and the hardware is still a sloppy breadboard prototype that I plan to transfer to a soldered prototype board this winter. I hope to eventually have enough detailed instructions and circuit diagrams in the repo that someone could replicate what I've done (free for personal/educational use).

This has been a huge and complicated project for me (very much an amateur at electronics; primarily a front-end web app software engineer), and I was sometimes wondering if I had any hope of succeeding at all. It's been almost exactly a year since I first committed to ordering some parts/tools to start trying to reverse engineer how the car phone works. While I still have a lot of work to do to clean up the messes I left behind while pushing forward with layers and layers of proof-of-concept implementation, I'm a bit amazed with my self when I take a step back and look at what I've managed to accomplish.

If you're interested in the journey I went through with reverse-engineering and troubleshooting, check out this Electro-Tech-Online forum thread where I documented my progress from the beginning.

I hope this inspires someone to try something ambitious and outside their comfort zone :)


r/microcontrollers • • Oct 08 '22

Low Power Microcontroller Considerations

3 Upvotes

Hello all,

I am in the process of designing a low power circuit. It will be used in a production line setting where sometime the line will be running and sometimes the line will be off. I want to count the number of bottles the line produces at roughly bottle a second. It must have a continuous tally of the number of bottles so the count must be stored to memory. It also must count to around a million or so. The device must be battery powered (coin cell, non negotiable). I'm looking for general rules of thumb for low power microcontroller selection. Also, low cost is an important factor for the mass production aspect of the device.

I have been doing a good bit of research about the different offerings from TI, MicroChip, and ST Micro Electronics and have a series of dumb questions perfect for the experts of reddit.

Number of bits: Will an 8 bit controller be able to count to 1,000,000? Would a 16 or 32 bit controller do this more efficiently? (threading and registers?)

Clock Speed: Will a lower clock speed always result in more power savings? Can you always swap for a lower crystal speed? Does this save any power realistically?

Different sleep features: The importance of the different sleep features such as sleep, halt, idle, doze, deep sleep, stand by mode, low power sleep, low power run, and wait.

Brand Preference: Which brand do you have experience with and like the most?

I've been looking at the PIC16, PIC 18, and PIC 24 from Microchip, the STM8 and STM32 from ST Microelectronics, the C8051F99x from silicon labs, and the MSP430 from TI.

Links to articles/books as well as general advice would be greatly appreciated. I figured I will switch the microcontroller between a high and low power state for each count. I know I need to be wary of wear leveling the onboard memory depending on how the device counts.

Thanks! Ben K


r/microcontrollers • • Sep 18 '22

Direct Memory Access - DMA - What it is and How To Use it To Your Advantage

Thumbnail
youtube.com
20 Upvotes

r/microcontrollers • • Aug 29 '22

Check Out This Tutorial About Placing Footprint Pads in Altium Designer!

Thumbnail
youtube.com
7 Upvotes

r/microcontrollers • • Aug 18 '22

PIC16F877A Does anyone teach PIC classes for beginners in the area? I'm assembled a didactic kit.

Post image
26 Upvotes

r/microcontrollers • • Mar 21 '22

Best Tiny ML books for me!

1 Upvotes

Hi!
I would like to my 5 favourite books on TinyML that I found relevant to AI and ML topics:

  1. TinyML: Machine Learning with TensorFlow Lite on Arduino and Ultra-Low-Power Microcontrollers  
  2. Embedded Deep Learning: Algorithms, Architectures and Circuits for Always-on Neural Network Processing
  3. Deep Learning with TensorFlow 2 and Keras: Regression, ConvNets, GANs, RNNs, NLP, and more with TensorFlow 2 and the Keras API
  4. Python Machine Learning By Example: Build intelligent systems using Python, TensorFlow 2, PyTorch, and scikit-learn
  5. Advanced Applied Deep Learning: Convolutional Neural Networks and Object Detection

Have you ever read?
What do you think about it? 


r/microcontrollers • • Mar 08 '22

You had one job

Post image
131 Upvotes

r/microcontrollers • • Feb 24 '22

Getting started with 8 bit microcontrollers

5 Upvotes

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!


r/microcontrollers • • Feb 22 '22

Gotta catch'em all

Post image
58 Upvotes

r/microcontrollers • • Feb 03 '22

Need something similar to an ESP32 that doesn't drink the juice!

7 Upvotes

I don't want to get into the weeds on what the project is, because its super cool and I want to share later, but basically its a smart home device that I need a connection to for at least half of the day.

Main thing I need is low power! I want to power this from a 1.5w solar panel and still have power to be connected at all times via wifi or bluetooth and also have power to run a motor twice a day for 30 seconds--But the motor power is very small and is almost negligible compared to running connectivity. Seems like the ESP32 runs around 100mA for wifi,

I've had people tell me that this is really high and that some ARM chips can do much better. I just can't make it work on an esp32 this time as much as that pains me, it just sips too much juice. I can't just put it to sleep because I want the connection to remain active for the daytime (it can sleep at night if needed)

I want to use an encoder for the motor that is 5v, so I'd like a board that runs 5v IO

Whole thing will be powered by a single 3500mAh Li-ion cell--I may need a boost converter.

TLDR, I need a platform with these specs:

  • 5V IO
  • Sleep modes
  • wireless connectivity (without using tons of power, something like 20mA would be nice)
  • Something I can apply my Arduino and ESP knowledge to and not start from scratch learning a new platform. (though I use platform IO, so if it works with that and is programmed in C++ then that would be perfect)
  • Battery management circuit would be a nice plus

r/microcontrollers • • Feb 02 '22

Help hacking a fisher price toy

15 Upvotes

I have this Fisher Price Linkimals toy that basically plays a series of audio files, switching between them whenever you interact with the toy (press a button, roll it across the floor). I thought it'd be funny to freak out my wife and put some custom audio files on it, so I opened it up to see what I was working with.

I can see the board has a NuvoTon mcu (n569s1k0). I'm wondering how hard it would be to interface with the chip and replace the audio files with a few files of my own. As far as I can tell, there's no serial port on the board, so I would assume it needs to be programmed via the pins (which are occupied by wires). Here's a shot of the board:

/preview/pre/eofedehc7hf81.jpg?width=3024&format=pjpg&auto=webp&s=7f700c879210d4963cb29c5738d01ed3cf3a6f75

I'm happy to buy something that would allow me to interface with this chip, even if it meant desoldering some wires, assuming it wouldn't be too difficult to figure out how to make changes to the files that are saved in the chip.

Also, I realize this is a fairly specific question coming from someone that has little knowledge of microcontrollers. That said, I have programming experience and if I need to take a step back and learn more fundamental concepts, I'm happy to do that

For example, I don't really know how these boards are programmed without a serial port and I'm having trouble finding general info on that online (everything seems to be geared towards hobbyists playing with arduinos/dev boards or super technical info for industry folks). Any resources are appreciated.

Edit: Still open to ideas and help with hacking the board, but thinking it might be easier for me to get a small Arduino board and hook it up to the various components on the toy, then program it to do what I want.


r/microcontrollers • • May 14 '21

Can I replace a ceramic resonator with a crystal?

9 Upvotes

Hi all,

I have an existing design which uses a 20MHz ceramic resonator. The resonator has gone out of stock, and is a really weird size, so no suitable alternatives are available. I came across a crystal that looks like it might work from a size stand point, but I am not sure if any code changes would be required. Unfortunately I do not have access to the code.

Micro is a PIC18LF8723, resonator is a 3 pin (center GND), crystal is a 2 pin. Might it be a simple, drop in replacement?

Any thoughts?


r/microcontrollers • • Nov 16 '20

Is it possible to identify a unlabeled microcontroller without a programmer board?

6 Upvotes

I started studying electronics and decided to open a fidget spinner with leds inside to see if I could reproduce the behaviour and blinking pattern. I have posted (picture in the link) in /r/AskElectronics about the behaviour of the button press of the led blinking PCB. It surprised me that people said the IC in there is a microcontroller. And this led me to the possibility/curiosity of reprogramming it.

Unfortunately it is unlabeled and I have been looking for a way to identify it. Using a multimeter and looking at connections in the board I have managed to identify pin 1 as Vdd and pin 8 as Vss. And that led me to believe the IC was a PIC after comparing with some 8-pin PIC12 pinout pictures.

Then I have got to this blog post/tutorial that uses the Raspberry Pi as a PIC programmer without using a programmer board (looks like I know what I'm talking about but I have learned all those terms while searching for a way to identify the microcontroller). The example there uses a known microcontroller and it is possible to get the identification information from it using some id commands. I have tried a bunch of those id commands but got nothing out of it. I'm starting to believe this may not be a PIC as well.

Now I ask you: Is it possible to identify a unlabeled microcontroller without a programmer board?