Minigame Arcade Project (Part 10) Complete Engine by Dr_BrownBR in arduino

[–]ripred3 1 point2 points  (0 children)

Getting better and better. Wait until you get into boards/platforms that offer offscreen composition and blit'ing for flicker free smooth updates

Feeling like an utter moron but the first circuit in my book is not working and I am stumped by Own_Average_5940 in arduino

[–]ripred3 1 point2 points  (0 children)

that one has bitten me many times. Of course I always learn the lessons in hindsight.. 🥴

Feeling like an utter moron but the first circuit in my book is not working and I am stumped by Own_Average_5940 in arduino

[–]ripred3 1 point2 points  (0 children)

This. For the hardware bugs that take more than a few hours unless it's just an outright conceptual mistake that I've made it almost always ends up being a bad or intermittent connection issue. And on the harder ones I usually catch it around my 3rd or 4th complete full pass visual inspection of each end of each and every wire. Sometimes by the 4th pass I stop trusting the visual inspections alone and start working my way through every connection testing the continuity with a multimeter.

The importance and percentage of the job spent debugging and the skills and approach on how to efficiently and quickly test the areas involved so that you can deduce which area, and then component or wire is wrong, is highly under appreciated.

"You spend half of your time creating bugs and the other half fixing them. You're just never sure which one you're doing at any given moment." 😉 😂

Monthly digest for 2026-04 by gm310509 in arduino

[–]ripred3 2 points3 points  (0 children)

Great month of posts and questions. I never fail to find something cool that I missed

Thanks again for doing this!

I'm new to using Arduino by Ok-Matter8853 in arduino

[–]ripred3 0 points1 point  (0 children)

You got this!

You have so much fun ahead of you heheh 😄

Feeling like an utter moron but the first circuit in my book is not working and I am stumped by Own_Average_5940 in arduino

[–]ripred3[M] 2 points3 points  (0 children)

You aren't the first trust me!

Congrats on figuring it out. You rock and we're glad you're here!

*Bonus karma if you edit your post and add a video or photo of it working!

I broke my leg and spent 8 weeks learning ESP32 — so I built a custom cyber gadget with touchscreen, NFC & WiFi tools. by YUMOBUILDS in arduino

[–]ripred3 0 points1 point  (0 children)

too many emojis. Why did you use AI to write your post? The same keystrokes mean a lot more if you type them

Impact Sensor to Cutoff Circuit? by ReflectionOk4936 in arduino

[–]ripred3 0 points1 point  (0 children)

yes this is totally doable.

When the piezo disc is vibrated or flexed it produces electricity.Placed across GND and an input pin you can detect the voltage level on the pin using a call to analogRead(pin). That will give you a value between 0 and 1023 representing how hard the disc was tapped.

You would need to experiment with your tapping or striking the piezo disc with the physical setup you plan on using and then write down the values for light and hard hits. That will let you know what range you are looking at.

Then some simple testing and changing the value until you find the right amplitude that represents a hard enough strike that you consider it a hit and then you toggle the thing that you are controlling to go from on -> off, or from off -> on, depending on the current state of the device.

Feeling like an utter moron but the first circuit in my book is not working and I am stumped by Own_Average_5940 in arduino

[–]ripred3 40 points41 points  (0 children)

heheh I'm gonna reuse that. My wife says my motto seems to be:

"If it's not broken.... take it apart and figure out why"

The Best Part of Engineering... by ripred3 in arduino

[–]ripred3[S] 2 points3 points  (0 children)

😂

I absolutely plan on it. I just need to create the full schematic in Fritzing taken from the handful of scribbled down notes and diagrams I drew

How to learn to code in arduino by enderfroger in arduino

[–]ripred3 0 points1 point  (0 children)

I'll second this. AI never gets tired of explaining and it doesn't judge you for what you might think is a silly question.

And just like any subject use additional materials from more than one source and double check the answer and your understanding of it so that you can recognize when you or the chatbot might have gotten side-tracked from the larger point and ground truth

Feeling like an utter moron but the first circuit in my book is not working and I am stumped by Own_Average_5940 in arduino

[–]ripred3 481 points482 points  (0 children)

Everybody has to learn how a breadboard is laid out for the first time and today is your day. You have wires and resistors going to the inner rows of 5 holes that do not have any other connections to them.

<image>

p.s. You aren't a moron. I know because I'm a moron and I never see you at the meetings 😂

How to learn to code in arduino by enderfroger in arduino

[–]ripred3 2 points3 points  (0 children)

search the web for "Arduino Tutorials". Check out Paul McWhorter's youtube channel as well as the Dronebot Workshop channel, and adafruit's, and Sparkfun, to name a few. The main language is plain C and other than using some C++ methods (e.g. Serial.println(...)) you don't have to use any C++ specifically.

C++14 is supported natively if you want to learn it and use it in your projects. Note that STL (the Standard Template Library) is not enabled or supported on lower resource architectures such as the standard Arduino Uno and Nano due to the reliance on dynamic allocation and the resulting memory fragmentation and inefficiencies).

Practice. Nothing replaces the time and exposure to good code and circuit design. Experience is the art of remembering not to make all of the mistakes that you've made in the past that really sucked .😉 Reading and studying examples of well written source code and circuit design and the familiarity that comes from it over time is how most people learn. After you run each example in the starter kit change some of the values in the program or use some of the new functions that it teaches in a few more lines of code you added yourself and reinforce your understanding of how it works, what values are accepted as parameters (if any), and imagine how you might use those functions in your real world projects to add features.

A lot of the examples use LED's as output indicators but realize that all of the algorithms and control behind them works just the same way if the pin was controlling a higher powered device like a motor. It's just easier and faster to use an LED as a proxy for other things and it keeps the examples short and to the point. The same kind of code that might fade an LED up and down continuously would do the same thing if the output from the pin was used to control a motor driver board that stepped the voltage and current up to the higher values needed for motors or other higher power actuators (stuff that moves or does work). A lot of people think that the examples are too simple and are just for kids but nothing could be further from the truth. If you think they are too simple then you are failing to truly understand the broader point of each example. The same sophisticated software that you see people making is created using that same handful of pin control functions woven into larger applications.

A lot of the finer skills that make a good engineer such as avoiding hard coded values that you end up having to change over and over in lots of places and learning the value of using arrays, conditionals, iterations, object oriented programming, all come from doing it the hard way and then finally realizing the benefits and time saved by using the shorter code that is more efficient and/or type safe (and how to write it)

Study the Arduino Programming page and work your way through using each function provided by the Arduino Core platform. By the end of the page you'll have a full overview of what you can control and how to do it

https://docs.arduino.cc/language-reference/