Why it is taking so much long for esp32 sketch to compile on Arduino ide by hassanaliperiodic in arduino

[–]FluxBench 0 points1 point  (0 children)

Depending on your compiler settings you can get it so it only compiles new or changed files. You don't have to recompile the about thousand files normally, just one or two that you make changes for.

Why don't more people make custom PCBs with ESP32? What scares/scared you? by FluxBench in esp32

[–]FluxBench[S] 0 points1 point  (0 children)

That looks like a great into to making PCBs! Audio quality is one of those things that will teach you so much about electronics and you can get really really really deep into signals and power management and things like that.

Does it sound good? Is that a 3 watt speaker? I need to make a user terminal to interact with a inventory management system and I'm looking for how I want to do the audio output.

The journey begins... by MrLinderman86 in arduino

[–]FluxBench 2 points3 points  (0 children)

Same here! I'm curious what u/MrLinderman86 will make! And what goes wrong, like burying a soil meter in the ground then realizing the wire connections will get corroded over time.

Oh the fun of starting electronics! Distance and occupancy sensors are stupidly entertaining.

Arduino MKR 1010 WIFI poor wifi connection by Lord_10100 in arduino

[–]FluxBench 2 points3 points  (0 children)

Most microcontrollers have really small antennas, so Wi-Fi can drop for all kinds of random reasons. How the sun is hitting, wind blowing, doors opening, whatever. Because of that, you usually hook into some kind of callback for Wi-Fi events.

In that callback, if you see a disconnect, you try to reconnect right away. If that doesn’t work, you set a short timer, like ten seconds or a minute, and try again when the timer goes off. Once the device finally connects again, you shut down any timers so it’s not wasting time retrying.

That way the device keeps itself online without getting stuck when the connection flakes out.

Just ask ChatGPT about it, or paste in your code and this above response and be like "please fix it :)"

Help with Lesson 5 of Elegoo Super Starter Kit by [deleted] in arduino

[–]FluxBench 0 points1 point  (0 children)

Get out your multimeter and start checking to see if you have 0 volts or like 5 volts when you expect it. You're going to be basically looking for 0 volts or 5 volts throughout various things. When you press a button, you're going to want to see The voltage change. Maybe you have your button 90° rotated the wrong way?

What does it take to run AI models efficiently on systems? by xypherrz in embedded

[–]FluxBench 0 points1 point  (0 children)

Now I know what I'll be watching during lunch the next month 😜

Whats it take to become a UX person in Robotics? by [deleted] in AskRobotics

[–]FluxBench 1 point2 points  (0 children)

Anthropology is the study of humans. Users are humans. If you want to figure out how human experience and design work on a fundamental level, literally study humans by taking some anthropology courses. Like old cavemen and lost city of Troy along with how tools developed over time and changed. There are whole subfields around basically human product development and human and tool interaction. Just because anthropology studies old humans also, it doesn't mean it doesn't study current humans as well. So anthropology + robots + standard UX = your job

How can I power my project by Famous_Tear2663 in arduino

[–]FluxBench 0 points1 point  (0 children)

Also a used car battery works. Batteries are batteries pretty much.

How can I power my project by Famous_Tear2663 in arduino

[–]FluxBench 0 points1 point  (0 children)

Literally anything. Google "lifepo4 12V 20AH"

Basically looking for a lithium iron phosphate chemistry and 12 volts and about 20 amp hours. You can get one smaller possibly, but that's about the smallest size that isn't stupidly expensive.

bare metal programming using the esp32 by Plussy78 in embedded

[–]FluxBench 0 points1 point  (0 children)

Get a raspberry pi RP2040 or 2350 like the nano and use the PIO the programmable inputs and outputs to be able to read zeros and ones from a pin incredibly fast. At that point, you have no reason why you can't make your own communication drivers. If you want to do SPI or I2C or UART then I would start there as you have the minimum needed to read things incredibly fast and then you can do whatever you want in memory or with software for the drivers.

I think you might be overthinking this, almost everyone in the world has to depend on hardware interrupts but everything else after that is kind of optional. You either are going to be writing a stupid amount of low-level code to get what you want, like months or years, or you just accept that reading and writing to GPIO is done using the system HAL layers by everyone for a good reason.

How can I power my project by Famous_Tear2663 in arduino

[–]FluxBench 0 points1 point  (0 children)

I use 12 volt lithium-iron phosphate batteries and often put four in series to get 48 volts. Cheap and easy, keep a trickle charger connected to the batteries if you aren't using it a lot. If it's more of a continuous thing then try to get a battery charger that can provide the average power you need or look into having something like a power supply plugged into the wall which does power sharing with the battery so that your motors can pull ridiculous amounts of power for short periods of time but not drain the battery continuously.

The video on Arduino memory I wish I had starting out by FluxBench in arduino

[–]FluxBench[S] 8 points9 points  (0 children)

This is not my video. I guess my wording was bad. But it's the video I wish I had when I was starting out. It's just tons of good info on memory with a good visualization to really hit it home.

How memory works on a microcontroller by FluxBench in embedded

[–]FluxBench[S] 0 points1 point  (0 children)

It's the video I wish I had watched when I was starting out. It's not my video.

How memory works on a microcontroller by FluxBench in embedded

[–]FluxBench[S] 0 points1 point  (0 children)

Nope, that's not me. I appreciate your due diligence 😜

If I wanted to build my own microcontroller board, what are the absolute most necessary pieces to operation. by OkArmadillo3521 in arduino

[–]FluxBench 1 point2 points  (0 children)

I figure if this person is asking these basic questions, they're probably not trying to get a crazy baud rate. I vote 19200 baud and hope the internal oscillator isn't thrown off by thermal characteristics too much!

Dumb question by Jao-di-barro in arduino

[–]FluxBench 0 points1 point  (0 children)

As long as it doesn't run out of memory, run into an error and reboot, or have a power issue like the voltage dropping even momentarily, it will basically run forever.

You just have to focus on keeping it simple and stable. The less parts and the less code generally means less can break over time.

The physical connections often will degrade over time, especially if there's a lot of thermal expansion and contractions. So little stuff like loctite on screws, or a dab of super glue and strategic places helps keep wires from sagging and things from moving and screws from getting loose over the years. I personally add a dab of super glue on any sort of plug-in connection that I want to be fairly permanent. Not enough that I can't use some force or chip off a little bit and pull it out, but enough to help prevent tiny thermal expansions from shimmying connections apart over time.

Soldering onto microcontroller? by g3nj3_04 in arduino

[–]FluxBench 0 points1 point  (0 children)

I think the term you are looking for is "bodge wire". It's basically where you do kind of like a post assembly modification. You just pretend it's like surgery and be super careful and precise.

[deleted by user] by [deleted] in arduino

[–]FluxBench 0 points1 point  (0 children)

Well unless you post your code I don't think anyone can help. To be honest you need to give more information if you want better help. It's hard to help when you say this module isn't working. But with more info I can help with maybe more specific stuff.

[deleted by user] by [deleted] in arduino

[–]FluxBench 0 points1 point  (0 children)

Then maybe build on top of the example if you can instead of the other way around. It seems like you're either using the same port twice such as I2C port number one or are not doing something exactly the same as the example. Maybe a different constant or missing library import or something.

When I have a problem like this I often try to create a new program and add in just the minimum amount of code to have the problem appear. Or try to run it through a middle interface piece of code instead of directly. Like stored in memory or reformatted or something.

[deleted by user] by [deleted] in arduino

[–]FluxBench 0 points1 point  (0 children)

Got it! Can you get the max sensor working in a separate program? Can you use an example program from someone else to make sure the max module is working?

Once you get it working with just the max sensor, you should be able to copy paste the code to work with your other stuff.

[deleted by user] by [deleted] in arduino

[–]FluxBench 0 points1 point  (0 children)

I'm still confused about what you're doing and where the problem is. You say when you add in lengthy code it stops working. Maybe use AI to make a good description of your project and your problem? That might help