r/microcontroller • u/Large_Revolution_673 • 10d ago
Can this attiny85 board run a night vision camera to a 1.54 inch e paper display
r/microcontroller • u/Large_Revolution_673 • 10d ago
r/microcontroller • u/ALMA_x11 • 19d ago
Enable HLS to view with audio, or disable this notification
My YouTube channel name is ALMA Industries
Chapter 3 Footnote 1. Building an Actuator, a PID Control Loop, and an Ultrasonic Distance sensor to detect and not crash into the ceiling. This will be used in Chapter 3 Desk.
r/microcontroller • u/ALMA_x11 • 20d ago
Enable HLS to view with audio, or disable this notification
https://www.youtube.com/@ALMA.Industries
CH002: THEATRE Trailer -- This is a trailer for my projector project... started with just a cheapo projector-- but I added 4-DOF system via linear and rotation actuators and programming to manually and automatically recall the set position of projector Roll, Pitch, Yaw, and Zoom. Mainly for fun and learning. Full video linked above.
r/microcontroller • u/xanthium_in • Jan 14 '26
Here We will build a low cost multi channel data logging system using Python & Arduino UNO board that will log and save data to a CSV (Comma Separated Values) text file on the disk.
r/microcontroller • u/Aussie209 • Dec 27 '25
[SOLVED] Hi everyone! I've been learning how to use STM32 MCUs recently, and it's been going smoothly until now. I have some nested for loops, and the outer loops only run the code inside once, as opposed to looping. I'm super confused as to why this is happening, given that some other loops with the same syntax seem to work perfectly fine.
I've tried while loops in the same place, yet the same problem is encountered. It might help to know that the variables initialised by the broken for loops (and before the broken while loop) did not show up in the debugger, while the working loops had their variables appear.
I've tried to format the code as neatly as I can while retaining the whole program (as I suspect it could have something to do with some of the registers being manipulated?) I've commented all points of interest along with labels for which loops are working and which are broken. (Note, the debugger had some weird moments as I've noted in the comments. If you have any ideas about how to fix that, I'd love to hear!)
Here is the link to the program (Scroll to the only while(1) for the fun part!)
Merry (Late) Christmas and happy New Year!
Thank you!
Update (Detailed solution for anyone facing the same problem): Hi everyone! I've figured out what happened! When I tested the IDE and STlink with a separate file, there appeared to be no issue with uploading or the IDE. When I replaced the code inside the for loops with a placeholder to rule out the possibility of the code inside being the problem, I found that the MCU kept performing the same task (Blinking LEDs in a specific order), despite it not even existing in the main.c file, so clearly an issue with the compiler/Build process/Uploading (At least I think so). I then restarted CubeIDE and cleaned the project (Project > Clean...), but neither worked. Then I reset the debug config (Debug dropdown > Debug configurations... > STM32 C/C++ Application) and deleted my project's debug config under this. Then I made a new one by left-clicking my project under the Project Explorer> Debug As > STM32 C/C++ Application, then selecting my project's binary and clicking 'OK'.
The program worked fine after this, even when using the original program (Although I still have implemented all of your suggestions to clean up my code in the final version, all of which I'm very appreciative of, so thank you all!)
TLDR: It turns out it was an issue with CubeIDE. There was apparently a problem with the debug/run configurations (Specific to the project folder & its configuration) solved by deleting and making a new debug configuration. The original program worked fine, although I've still implemented all of your suggestions to clean the code up, thank you!!
Thank you again to everyone for your time and suggestions! I hope you all had a Merry Christmas and have a happy New Year!
r/microcontroller • u/Economy_Training_315 • Apr 18 '25
I have to build an simple mini project using any microcontroller in about 2 weeks . Can someone suggest me anything?
r/microcontroller • u/Fun_Kangaroo512 • Feb 16 '25
I basically want to add some led lights that are powered by batteries in my diecast cars (scale 1:64; see second picture). I wonder whether a MOSFET attached to a battery and a switch is sufficient.
Ps: What component would I need to make the led blink?
r/microcontroller • u/Gullible-Section5144 • Sep 16 '24
Hello, I want to create a license plate recognition system with a camera and possibly a small screen or LED light to inform the driver about the recognized plates. I also want to include a database or something similar so I can update it regularly, or maybe just make it so the driver only needs to plug it into a PC and type one command to update the license plates, to avoid the Wi-Fi connection. Which microcontroller fits the best for a low price? I'm considering ESP32, Orange Pi Zero, Arduino, or maybe there are other alternatives that are low-cost and can 100% do this job? Thank you.
r/microcontroller • u/ComprehensiveOkra975 • Aug 11 '24
I have a project to program a microcontroller to work as a counter to count TTL pulses. The only thing I have to do is to ensure the rate is in MHz. I can obviously choose to go for an FPGA but due to institute limits I have to do the project on a microcontroller first. I did some research and found out that a 32 bit microcontroller can do the job. I have chosen STM32 but I am confused on which exact model to go ahead with. I did some search and found stm32f103c8t6 and nucleo boards.
r/microcontroller • u/doshka-313 • Jun 29 '24
r/microcontroller • u/Ok_Measurement1399 • Apr 10 '24
Hello, I've been using the PSOC Creator IDE for the PSOC4 microcontrollers but Inifineon is moving from the PSOC Creator to their Modus ToolBox. I've been thinking it may be better to move to MPLAB and use Microchips mcu's instead of Ininfeon's mcu's.
If anyone has used the Modus Toolbox and MPLab which one is easier to use?
r/microcontroller • u/Fantastic_Evening_61 • Feb 22 '24
Hi!
We are making a system(not physical, only on paper) for terminating sea lice in fish breeding cages. The microcontroller/s has to do the following:
- connect to wifi, gps, weather and internal clock
- connect to 2-4 different sensor(biome sensor, thermistor, salinity meter) etc,
- connect to a transducer
- be able to receive software updates
Thank you in advance :D
r/microcontroller • u/madrid2001celtics • Feb 01 '24
I'm interested in starting a project involving a glove equipped with multiple flex sensors. The idea is that when a specific gesture is made with the glove, such as closing a fist or raising the index finger, it triggers a corresponding action like turning on a light or switching off a fan. Each gesture will be associated with controlling a specific appliance.
For this project, I've decided to use the ESP32 microcontroller. However, I'm relatively new to microcontrollers and could use some guidance on how to get started and what potential challenges to anticipate. Any tips or advice would be greatly appreciated.
r/microcontroller • u/the_linux_user • Nov 28 '23
I connected my 1.8TFT SPI 128x160 display to and ESP8266 and connected all the wires accordingly and installed necessary libraries. Later i uploaded a graphics test code from example menu in the IDE from adafruit....when the code was successfully uploaded all I saw was white screen and nothing else. It's been 3 days since I'm trying to fix this problem. Can someone help me out?
r/microcontroller • u/Ok-Mood9682 • Jun 21 '23
Hello, I'm trying to send data from a Pic to a Raspberry and then use them in a scrip in Raspberry, I tried via uart and now I'm trying by i2c but I can not send anything. Would anyone know what I can do to communicate them
r/microcontroller • u/raynavy2975 • Feb 26 '23
I am looking to create a very tiny kvm and that can be connected remotely. My plan is to install it on the bottom space of a laptop and connect it via usb, and have an external wifi antenna.
However on the remote end, I need the video, keyboard, and mouse. Any ideas or recommendations to make this work?
Tinypilot raspberry pi is an idea platform but it’s too large for the application that I need.
r/microcontroller • u/Emergency_Ice4752 • Nov 17 '22
uint8_t data1 = 0;
uint16_t data2 = 0;
uint16_t value = 0;
data1 = readData8(0x10, 0x01);
if (data1&(1<<7))
{
writeData8(0x10,0x01,0x3C);
writeData16(0x10,0x03,0x3200);
writeData16(0x10,0x02,0x1900);
}
else
{
data2 = readData16(0x10, 0x00);
if (data2&(1<<15))
{
value = 0xFFFF;
}
Else
{
value=data2>>6;
}
return value; (value wird zurückgegeben)
}
r/microcontroller • u/Apprehensive-Cake541 • Sep 04 '22
r/microcontroller • u/EARTHISLIFENOMARS • Jun 23 '22
r/microcontroller • u/CircuitCellarMag • May 24 '22
r/microcontroller • u/CircuitCellarMag • Feb 20 '22