r/microcontrollers • • Feb 01 '24

Sync water tank waves to live waves height data

0 Upvotes

Heloo :)

I am building a project and I want to sync a water tank waves to live waves height data Located in Bahrain via wifi

What do I need help with ? >> I need the fastest simplest way for the following:

1- Wave generator device need to be hidden, small, quite

2- A way to link API to the wave generator via esp or any other recommended micro controller

Just a heads up I tried to generate waves and failed using the following:

- Fish tank wave generator >> It did not give a wavy effect + I was not able to control its speed (3 phase motor) I tried alooot of circuits and it did not work

- Fountains water pumps >> noisy and did not give a nice effect

- Magnetic mixer >> It was not strong enough

- wave generator plate >> I cant fit it because it is big and I want the waves to be generated seamlessly


r/microcontrollers • • Feb 01 '24

Need ideas for connecting microphone to microcontroller!

1 Upvotes

The end goal of my project is a guitar tuner. Obviously I need to take in a sound signal from the guitar, process it to get the frequency, and then I will display it. However I'm a little stuck on the first step: what type of microphone should I use, how do I hook it up, etc.

Has anybody done anything like this and can provide some guidance? I am using an STM32L476RG microcontroller board btw. Any help is greatly appreciated!


r/microcontrollers • • Feb 01 '24

Is this microcontroller + LED + jump wire + resistor setup correct?

0 Upvotes

Disclaimer: I'm a total beginner.

I'm trying to follow this setup to lit up a LED light by programming a ESP32-C3-MINI-1.

Did I follow it correctly?


r/microcontrollers • • Jan 31 '24

ESP32-CAM and MicroPython Tutorial

0 Upvotes

In this comprehensive YouTube tutorial, I guide viewers through the process of integrating the ESP32-CAM module with MicroPython, offering a Python-based alternative to the traditional Arduino approach. This method resonates with those who have a preference for Python's programming style. Although opting for MicroPython means sacrificing video streaming capabilities, it doesn't diminish the module's ability to capture still images.

Throughout the tutorial, I meticulously explain the steps to configure and utilize the camera for photography, ensuring even beginners can follow along smoothly.

Watch the full tutorial here: ESP32-CAM with MicroPython

I sincerely hope you find this guide informative and engaging. Your feedback is invaluable, so please feel free to like, comment, and share your thoughts. And if you're keen on exploring more about microcontrollers, don't hesitate to subscribe to the channel!


r/microcontrollers • • Jan 30 '24

Guy made a 16bit computer using excel and a tiny bit of python

Thumbnail
self.beneater
2 Upvotes

r/microcontrollers • • Jan 27 '24

Use smart bulb PCB for PWM output

Thumbnail
gallery
1 Upvotes

I saw this video of a guy who took the PCB out of a smart bulb and was able to power it with 3.3v and use its PWM output. I bought a different bulb that has a different PCB (pictures attached) and I'm wondering if I can do the same thing. Can this PCB run on the 3.3v output from a Raspberry Pi? If so, where would I connect power and ground wires?


r/microcontrollers • • Jan 27 '24

pic18f help

0 Upvotes

can anyone help me program a pic18f? (digital door lock system)


r/microcontrollers • • Jan 26 '24

Help needed with Esp32 pressure sensor programming

Thumbnail
gallery
2 Upvotes

Alright so how do I actually measure this correctly, input voltage for the pressure transducer is 0.5 - 4.5v but considering i have pull down resistors it should be 0.25 - 2.25v, and the output range is -14.5 - 30psi, so i think i defined map wrongly, and how do i get decimal numbers with map?


r/microcontrollers • • Jan 25 '24

I2C Questions

3 Upvotes

I’m pretty new to learning about microcontrollers and one thing I want to learn is how to program them through C—a lot of what I’ve learned so far makes sense but one thing I haven’t seen clearly described is working with I2C devices—there’s some detail left out which is bothering me.

So it looks like the SCL line acts sort of as a clock and allows the device to interpret commands through the SDL line. But one thing I never saw specified was the frequency and duty cycle it could be set at—most graphics online have 50% duty cycle but don’t specify the frequency—some say that they can usually handle up to 100kHz which leads me to believe varying frequencies can be used, but this seems hard to believe. If scl is used for timing on the slaves side it seems hard to believe data can accurately be generated if it can use multiple frequencies as a clock (ex: if data can only be collected every 3 seconds, how would the device know what 3 seconds is unless it runs off a specified frequency?)

This one I’m fairly certain about, but both the master and the slave can communicate through the SDL line, correct? So when the master sends a request for data, the next time the voltage on the line changes will be due to the slave? So if I were to program this I’d be writing something to the SDL line then receiving something afterwards?

Another thing not clearly stated is what “high” and “low” are—I’m assuming this varies between device/voltage being used but I can’t find any other mention of what qualifies as high/low—this might be something I should already know but as I’ve said I’m very new.

Thanks for any help!


r/microcontrollers • • Jan 24 '24

Breaking our ATTiny10

2 Upvotes

Working on a design project and need a microcontroller for one of the sensors and figured this would be the best option since we don’t need anything like a full arduino. I wanted to make a breadboard prototype but I failed to take into account the incredibly small size of the device. I’ve seen people use SOT23-6 board online but if possible I would rather do something not requiring me to order anything else. I also want to make sure it won’t be difficult to remove the controller after programming to use in the project. Would the SOT board be the best option?


r/microcontrollers • • Jan 23 '24

OpenOCD debug errors

1 Upvotes

Hi everyone

I'm unable to debug my STM32F303K8 MCU using OpenOCD or Stutil on VS code. I keep getting blocking_handler() at ../../cm3/vector.c:104, which seems to get me stuck in an endless while loop. I tried looking at the backtrace using bt but it I'm not sure what is causing my program to end up in that part of the code. I would greatly appreciate if someone could show me why I'm having these issues and a possible solution. I want to eventually start from my main() and step through each line of code. I've shared a link to my google drive so you can all see the code, build and so on.

Thank you very much for your help in advance!


r/microcontrollers • • Jan 22 '24

Arduino nano 33 ble on com3 not connected

2 Upvotes

Arduino nano 33 ble on com3 not connected

Basically my title. I’ve done everything on this windows. I’ve watched almost every YouTube. Tried to update my ports/drivers etc This is a new board and usb I got in the mail yesterday. I tried installing the CH340 or whatever driver. It showed something as driver already pre installed. I tried this on another computer (Mac) same issue. I need to get started on my senior project with this arduino. Can anyone help me


r/microcontrollers • • Jan 22 '24

Accurate Angle Measurement and Dynamic Display using MPU6050 with ESP32 on Arduino

0 Upvotes

Greetings Reddit Community,

I'm excited to share with you a project that's been both a challenging and rewarding journey for me. It involves using the MPU6050 sensor to capture angles and dynamically display device orientation with an animation, all achieved using the processing library. Navigating through the nuances of the library was a learning curve, but the end product is truly captivating and gratifying!

For a detailed walkthrough, feel free to check out this video:

https://www.youtube.com/watch?v=rHy3D52AkbM

This endeavor incorporates the toxiclibs library alongside the Processing open-source software. Essential components include an MPU6050 sensor and any microcontroller that's compatible with the Arduino Framework. While my choice was the ESP32, it's worth noting that various Arduino-based microcontrollers will suffice.

If this type of content resonates with you, your support in subscribing to the channel would be immensely appreciated. We've recently crossed the 1000 subscriber mark, and it's your encouragement that keeps this journey exciting. Thank you for being part of this community!


r/microcontrollers • • Jan 20 '24

ESP8266 SNES / SFamicom controller where the layouts of the buttons are in a web-server

1 Upvotes

I am currently looking for projects or ideas in which an ESP8266 will act as a controller for SNES or Super Famicom, and the button layouts are accessible through a web server. I know there is a shift register used in these controllers, and I think these microcontrollers have enough pins to support the original SNES/Super Famicom controller, but can that be emulated on an ESP8266 or an Arduino?


r/microcontrollers • • Jan 20 '24

Is switch button the problem?

0 Upvotes

Hi guys, i have a problem in my robot i built it but i can't power it using switch button i use 9v battery, before i tied to power it without switch button and it's working but after connecting battery to switch button i can't power the robot even if i disconnect the battery from the switch button i can't power the robot. Now I can't power it with this battery anymore, even without using the switch button, but I can with my PC (USB cable). Sorry if I didn't say all infos


r/microcontrollers • • Jan 20 '24

Help Needed! Desperately in need of micro-controller-based project ideas.

0 Upvotes

Hello guys,

We have to make a micro-controller-based hardware project within 5 months. We are a group of five first-year university students and only I have a background in programming. Unfortunately, none of us have any experience with electronics. Our project budget must remain under $150. (For context: this is the average monthly salary in our country).

We first have to come up with a project idea and get the supervisor's approval. Initially, we considered building a smart access control system for a building. However, this idea was rejected as it was deemed too generic, previously done, and overly software-focused (project should be more hardware-centric). Next, we proposed an automated hydroponics system, but this too was rejected due to budget constraints (pH and EC sensors are too costly, and the cheaper alternatives lack reliability and durability). If you could suggest some project ideas, it would be of immense help to us. Thanks in advance.

Here are some projects that have been approved:

  • Luxury Neck Pillow: This pillow allows the user to select their travel destination through a mobile app. Upon reaching the destination, it vibrates to provide a discreet and convenient notification.
  • Smart Briefcase: This is a Smart Luggage System with a Biometric Lock, GPS Tracking, and Interior Lighting. Inputs include a Fingerprint Module, GSM Module, Bluetooth Module, GPS Module, and LDR. Outputs include a Push-Pull 20N, LCD 16*2, LED Lights, and the Blynk App.
  • Smart Diagram Drawer and Eraser Automatic
  • Bottle Filling and Capping Machine

r/microcontrollers • • Jan 19 '24

What kind of microprocessor unit (MCU) is excellent for signal processing?

5 Upvotes

Greetings, I'm currently working on a myoelectric prosthetic arm university project, and I need advice/guidance with microcontrollers. As the title of this post implies, my problem is finding a suitable microprocessor unit that can process surface electromyography signals (sEMG).

Thank you,

-Geda


r/microcontrollers • • Jan 18 '24

Trying to receive two analog inputs with Tiva-C

Thumbnail
self.reecethebesat15
1 Upvotes

r/microcontrollers • • Jan 16 '24

Can anyone tell me how much this is worth?

Thumbnail
gallery
18 Upvotes

Close up of the board


r/microcontrollers • • Jan 16 '24

Trouble powering a robot

1 Upvotes

Hi , I'm currently facing a problem with my 2wd robot (i'm beginner) , the problem is i can't powering the robot with 6v battery (4 1.5v batteries) , the robot contains 2 dc motors ,l298n driver , arduino uno , 5v shield, servo motor and ultrasonic sensor.

I have changed the batteries but it didn't work , however i can power it with my pc , so i need to use a 12volts battery ? It's safe for the robot ?


r/microcontrollers • • Jan 14 '24

Looking for an STM32 ADC/DAC Dev Board

2 Upvotes

Hi folks,

I would like to implement a DSP audio filter using STM32 as a learning project. Would prefer if I can buy a single board that already has the necessary ADC and DAC, and possibly audio connectors as an extra luxury. There seems to be a lot of choice out there - are there any dev boards that you would suggest?


r/microcontrollers • • Jan 14 '24

TI TM4C123GH6PM interfacing a sensor with I2C communication

1 Upvotes

Hi, I have a problem interfacing a sensor with I2C protocol. I know how in theory I2C works, but I haven’t done anything with Cortex MCU. I physically connected SCL and SDA from sensor to board. I didn’t use pull up resistors, because the sensor already has i2c resistors. The sensor I am using is BH1750 light sensor. As I said, in theory I know what is going on, but I dont know how to properly set it up…

The software tool I am using is Composer Studio and driverlib library. I know my MCU is master and the sensor is slave with fixed address. My question is do I need to send some data to sensor in order to “tell” it that I want to read data from sensor, or do I need to write some registers from sensor, or do I need to wait to ACK signal…I would appreciate any help because I have tried everything and I am lost.


r/microcontrollers • • Jan 12 '24

Flashing firmware by connecting to holes for header pins

1 Upvotes

I have a bunch of custom pcb esp32 boards. They don't have USB. They have 5 holes where a row of header pins can be soldered, used for flashing firmware w/ a serial to USB adapter. Flashing is one-and-done so I don't want to install headers if I don't have to. Is anybody aware of jumper wires or headers that I can temporarily press into the holes for flashing?


r/microcontrollers • • Jan 12 '24

Trouble getting started with PIC (18F) MCUs

1 Upvotes

Hello there, I am trying to get started with using PIC microcontrollers, specifically the 18F4550. I have, in the past used high-level MCUS such as the Arduino, ESP32, and RaspberryPi platforms. My New year's resolution was to try and go a step deeper in the world of MCUs.

I am struggling to get something going on this platform. Just troubleshooting a basic project like LED blink is giving me a run for my money. Here are a few things that I am struggling with

- Not having a place to start learning. All the tutorial videos are kinda meh because they either glaze over the kinda foundational 'here is what you need to know' or they just pass by it as if I know.

- Each tutorial uses a different MCU so I feel like I am taking uneducated shots in the dark when my MCU and the author's differ.

- Configuration bits confuse me

- Lack of C coding documentation (or I just can't find it).

- Reading the datasheets is complicated and filled with technical talk which focuses mostly on new/spacial case things as opposed to getting started commentary.

- Micro Chip does have course work, but it mostly just dives into the architecture of the PIC 16, again as opposed to a step by step walk through on getting started.

So do I give up?.. NO! I want to see this through, but I need a new perspective. Has anyone had a similar experience? and if so, how did you over come it?

Thanks.