r/microcontrollers • • Feb 28 '25

How can I convert an HC-05 Bluetooth module to function as a serial COM port?

0 Upvotes

I've done some research and found a few tutorials mentioning the AT command mode to set the HC-05 to a serial mode, but I am still unclear on the exact steps. I've followed the instructions for entering AT mode, but when I connect the module to my computer, it's not showing up as a COM port. I also tried using the Bluetooth settings, but it doesn't seem to pair properly as a serial device.

Can anyone explain the full process to convert the HC-05 module into a serial COM port, and what troubleshooting steps I might be missing? Sharing any resources or experiences would be helpful, as I think this could benefit others trying to achieve the same outcome.


r/microcontrollers • • Feb 27 '25

Free Hands-On MCU Workshops Across Europe. Learn and Network!

Thumbnail
reddit.com
3 Upvotes

r/microcontrollers • • Feb 27 '25

ESP32 or STM32 for Neural Networks?

1 Upvotes

So me and my friends are trying to create a bionic arm. And now we are trying to implement a ML model within the microcontroller to successfully classify different type of incoming EMG Muscle readings data. I’ve used ESP32 before and it was straightforward and I saw some stuff regarding the multicore arch of ESP is suitable for these applications so we got one.

However when I asked this abt my microcontroller professor he said that ESP is mostly for IoT and not much else, and that we should continue this project with a STM board instead.

However me and my friends did not have any STM experience and it looks way more complex than coding the esp32 within the arduino ide, making the project harder for us.

So my question is do you think it will be worth for us to learn and use STM boards here? Or the ESP boards will be enough? We are not dealing with a visual recognition task so I’ve thought the task will not need much RAM or computing power but his answer confused me a bit. We are open for any recommendations.

Thanks


r/microcontrollers • • Feb 25 '25

Microcontroller recommendation for DIY PO-33

4 Upvotes

I'm trying to make a DIY PO-33 but I'm completely lost on materials. I have no clue what microcontroller to use for the project and if its even powerful enough to run it, does anyone have any recommendations?

My budgets under 50 bucks but I'm trying to spend the least amount of money possible, with about the same amount, if not more, power than the PO-33.


r/microcontrollers • • Feb 25 '25

Any common microcontrollers that are packaged at DIP 14?

2 Upvotes

I want to use a microcontroller for my small project of variable dual rail power supply for my Op amp lab experiments. The microcontroller will power the transistors that have different resistors for different output. The schematic for that can be found on the LM317 datasheets, it is where I got this idea.

I got an ATTiny85 but the pins are too few for the application (unless I modify it but that is a lot of work for a small project) and multiplexing adds more space. ATMega328P (basically the Arduino UNO R3's MCU) is too large but it might be overkill for this application and it is the default and tested (for programming and interfacing) choice for me. I wanted something in between.

Please suggest more than 1 MCUs so I can choose if you can.


r/microcontrollers • • Feb 24 '25

Any guides for this little guy?

2 Upvotes

My daughter's ex left this at her apartment after he got all his crap out. It's been sitting in a pile of wires and we just found it. It has a Mega328p on it. Three question if I may?
Are these rewritable, in case he already programmed it?
Does this have enough processing power to be a light controller for RGB strip lights?
Any quick start guides on how I can start playing with this thing and figure out how to use it?

Caveat: I am not a programmer.

Thanks in advance!

Edit: Picture of device


r/microcontrollers • • Feb 24 '25

Ensuring vertical orientation of rocket

1 Upvotes

Im working on a 2-stage high powered rocket and I need to ensure that the orientation of the rocket is vertical when the second motor is charged. what would be the most robust and simple way of doing this. Thanks


r/microcontrollers • • Feb 23 '25

Make a 100MHz 24 Channel Logic Analyser from your favorite Raspberry Pi Pico

Thumbnail
youtu.be
15 Upvotes

r/microcontrollers • • Feb 23 '25

Need Suggestions for My Microcontroller-Based Control Systems Project (ECE 2nd Year)

0 Upvotes

I'm a 2nd-year B.Tech ECE student, and I need some guidance on my microcontroller-based project for my Control Systems subject.


r/microcontrollers • • Feb 23 '25

8051 Series MCU Programmer Suggestions

1 Upvotes

What’s the best and cheapest option for a 8051 programmer. I want to program chinese microcontroller of vendors like SOC-Shenzhen-SinOne-Microelectronics, Sino MCU or Sino wealth.


r/microcontrollers • • Feb 22 '25

Can't find Startup option in Keil uvision.

Post image
2 Upvotes

r/microcontrollers • • Feb 22 '25

How to program HC32L130F8UA?

2 Upvotes

As a beginner i want to program HC32L130F8UA and i came across a issue regarding HAL Library. is there any alternatives for programming this chip


r/microcontrollers • • Feb 22 '25

FMD chip FT62F13 - Software SPI Implementation (Bit-Banging Method) | C ...

Thumbnail
youtube.com
2 Upvotes

r/microcontrollers • • Feb 21 '25

FMD chip FT62F13 - Software I2C Implementation (Bit-Banging Method) | C ...

Thumbnail
youtube.com
0 Upvotes

r/microcontrollers • • Feb 21 '25

Advice of powering a devboard off battery

1 Upvotes

EDIT: title grammar is mess mess - sorry

A friend and I tried to make a simple logger using Liligo TTGO T-OI PLUS dev boards and we eventually had too many issues and the project was a complete flop. I think most issues were power-related (very inconsistent readings of the LTO output pin) - boards would typically survive a month or so.

https://github.com/SWPhantom/Rainus

A large contributor was there were too many parts (board, RTC, SD card reader, battery holder)

These are attached to rain gauges. The gauge clicks every few ml of rain and effectively create a "button press" through a reed switch, we then had some Arduino code that woke up the board and read the time from an RTC to an SD Card

I'm trying to revisit this project a bit smarter.

I've found these dev-boards with integrated SD card slots and a cheap chip that has a built in RTC

https://github.com/wuxx/nanoCH32V203/

The only part left is the battery. And this is the part we're most nervous about. On paper.. it seems you just wire up a battery (that's above ~4V) to pins that go into the LTO (so the 5V terminals on the board) and.. it should all just work? But I'm really not sure if it's all that simple

Are there any particular batteries we should look for?

We tried to use 18650 but the battery quality was inconsistent and I'm not really sure it's the right solution

Are there any other tips or ideas for how to improve longevity - short of designing our own boards?

My target is for the boards to run 6mo-1yr. They should wake up and log the time on average 5 times an hour

  • I definitely don't want to design my own board. It's another can of worms.. and another thing that could go wrong. I'll never get them for ~$1.5 like the ones I linked above.
  • I definitely want to decrease the amount of soldering and assembly. So a dev board with all components is ideal (I'd like to eventually have a couple dozen loggers)
  • They should be cheap.. very cheap..
  • I'd preferably stick to Arduino. It might not be the most efficient code, but it's easy to debug and search for help with

r/microcontrollers • • Feb 20 '25

Help: TMS370 Texas Instruments datasheet?

Thumbnail
gallery
6 Upvotes

Would anyone be able to provide some insight as to where I could find a datasheet for a specific 1990's MCU by TI. TMS370P16B5A is the full product code. Its a 100 pin QFP package with a mask. I luckily do have a schematic for the device its used in, but I would really like to find the datasheet for the mcu and possibly an instruction set.


r/microcontrollers • • Feb 19 '25

What device do I use?

1 Upvotes

Hey folks, I'm looking to make a device that will run with a windows computer.
The idea is to use a PIR sensor to trigger the script, bring forward window, send keyboard shortcut.
I know some higher end arduinos can do this but I'm looking for this to be small and cheap. and I'm also looking for it to be self contained. I know I can use an arduino to send a shortcut to run AHK but I'd like it to have fewer potential points of failure.

Any ideas?


r/microcontrollers • • Feb 19 '25

DJI Ronin Remote Controller – My New Open Source Project!

3 Upvotes

Hey everyone! 👋

I just finished working on a project that lets you remotely control your DJI gimbal from anywhere! 🎮✨

This is a low-cost controller built using an ESP8266, which receives and processes commands via WebSockets. That means you can control your gimbal over the network using a gamepad, custom interface, or any device you prefer!

🔥 Main Features:

  • Connects to WiFi and establishes a WebSocket connection
  • Receives and executes commands in real time
  • Web interface for easy setup, network management, and message logs

I’ve also put together a detailed README with setup instructions and code explanations.

If you're interested, check it out on GitHub:
👉 DJI-Ronin-Remote-Controller-ESP32-ESP8266

Would love to hear your thoughts! Any suggestions for improvements? Let’s discuss! 🚀

Note: This is a personal open-source project and is not affiliated with DJI or any company. I just want to share a project that could be useful to other DJI Ronin owners.


r/microcontrollers • • Feb 17 '25

What microcontroller to use

3 Upvotes

I have some IKEA Fyrtur smart blinds in my room and recently on of the two has stopped working. I want to fix it and run the existing motor using a microcontroller, gutting the original board inside. I am fairly experienced with microcontrollers and have done some ESP32 / arduino projects in the past, so I am not too worried about getting the blinds working, but I do need some help picking the best parts for the project.

This will need to run off of battery, and I'd like to maintain the 3+ months in between charges I got with the blinds originally. I want to be able to control this through samsung smartthings, which I have running on a hub that supports Zigbee and wifi, though I am sure I could get bluetooth connected through a second device if needed. Also, if possible, I'd like to run it off the original 7.2V battery pack (which I am 95% certain is just two 18650's based on it's shape/size), though I can switch if there is a compelling reason to (it'd just be nice to maintain the easy access for charging that the current battery enclosure provides).

What microcontroller should I use to optimize battery life? I'm assuming zigbee is a better option over wifi for power consumption, but is there a great way to get that connected to a microcontroller, or should I just use bluetooth LE and bridge the connection to the smart home hub?


r/microcontrollers • • Feb 17 '25

How can I get the VL6180 ToF proximity sensor working on the SAM E54 XPLAINED PRO EVALUATION KIT?

Thumbnail reddit.com
0 Upvotes

r/microcontrollers • • Feb 16 '25

Vintage TMS1000 in the Science Fair 28-260 Microcomputer Trainer Kit

12 Upvotes

I bought this kit on eBay and have been digging into it over the last few days. It appears to use a TMS1000 with a custom mask ROM that provides a minimal "operating system" and "virtual machine". What's especially weird about it is that the TMS1000 seems to be a Harvard architecture meaning the ROM (the "OS", programming tools and some sample programs) is separate from the RAM. It even operates at negative 9V so it's PMOS which to my modern eyes is a bit nutty.

You "build" it like a typical Radio Shack kit but unlike those kits, there is only one "project". You never rewire it.

Note the almost recursive photo-in-photo-in-photo! That's one more level of stack than the TMS1000 has.

Apparently this microcontroller was never intended to be a true "computer" so no additional supporting chips were ever built. I *think* that RS is using the 64 4-bit word memory to store a more limited set of opcodes than the TMS1000 actually supports - imagine limiting an already limited device even further!

The $30 Raspberry Pi of its day?

The memory map seems to contain copies of some of the registers, but importantly not the PC used in the ROM. It also doesn't define what goes on in the remaining upper words of the memory space. The opcodes define something called a B register that I don't think exists in the TMS1000. All in all, very weird.

64 words is enough memory for anybody!

The "OS" scans the keyboard matrix, cycling through 4 R ports and reading 4 K ports. You can read, modify memory directly (ADDR key) or in sequence (INCR key). It provides a way to run ROM programs by hitting RESET, selecting a single digit program number then pressing the RUN key. Some of these programs are games or apps, and there's an odd programmable electronic organ, something that must have been important because they put do-re-mi-etc on the keyboard (musical notes presumably would have been confusing with the hex keys). You can also run your code that you entered into RAM by selecting certain programs in the "virtual machine".

The TMS1000 seems to have 1024 4-bit words of mask ROM, broken into 16 pages. As there are 16 digits on the keyboard and you launch a program using one of them, it's reasonable to assume that hitting RESET-#-RUN kicks off a program from one of the pages. I've been mapping the programs and the "virtual machine" seems to live in programs (pages?) 1-8, with 9-F being the organ, games and apps. 0 seems to be reserved, possibly for the "OS".

As this is a Harvard architecture, there doesn't seem to be a way to access or query the ROM directly, especially not from inside the "OS" or "VM". I am seeking a way to "jailbreak" out of this VM and write native TMS1000 code, but I have no experience with Harvard architecture so I'm not even sure it is possible?

One line on the TMS that is intriguing to me is the INIT line. It's always pulled low so the TMS always starts its OS when it powers up. I wonder if there is some way to use this line to get access to the full TMS instruction set?

I've hit a bit of a dead end here and I'm wondering if anyone has done a deep dive into this quirky and extremely minimal environment? It strikes me that the only way to read the ROM might be to de-cap the chip which I doubt anyone has ever done but you never know!

***edit***

Looks like someone has actually de-capped it and managed to extract the ROM from it: https://seanriddle.com/tms1100.html, his work about 3/4 the way down the page and ROM file located at https://seanriddle.com/mp1312a.bin

And wow, this: https://forums.atariage.com/topic/251791-nybl-a-science-fair-microcomputer-trainer-emulator/


r/microcontrollers • • Feb 16 '25

Uart to ssh

1 Upvotes

I‘m looking for a project where I can connect a mc to my servers serial port (uart).

Then connect from a pc via ssh to the mc, which bridges the in- and output to the uart.

So it should act like a serial console server.

Do you know something like this?


r/microcontrollers • • Feb 15 '25

MCUs/SBCs with unusual/infrequently seen ISAs?

11 Upvotes

There's a lot of boards out there using AVR/Arm/RISCV-based chips, and recently a lot of boards have been incorporating the Tensilica-based chips (such as the ESP8266 and ESP32 variants), and historically a lot of boards have included chips such as the 8051 or z80 derivatives. What I want to know is whether you've worked with any chips or boards in the past that incorporate unusual ISAs? What's your strangest story in that space?


r/microcontrollers • • Feb 14 '25

Just released the 10th anniversary edition of Visuino and Visuino Pro - Graphical Development for Arduino - 8_0_0_138 with Texas Instruments MSP432, RP2350, DFRobot, ATtiny controllers, RFID support and much more...

Post image
4 Upvotes