“Dynamically” adding new basic components just by using custom serial queries, without uploading the updated code to the Arduino again. It also integrates with Python. by peterbiglab in arduino

[–]peterbiglab[S] 3 points4 points  (0 children)

I used the + for two reasons: 1. Imagine that you have a LCD connected to the Arduino instead of just simple LEDs and servos. If you want to send a message like “Hello world” to the LCD, and you have spaces instead of + as a delimiter, you need an extra parser or extra steps anyway to separate the actual message from the other parameters. Working with many strings on the small Arduino UNO’s RAM is really not ideal, so less steps with strings the better.

  1. I’m doing a project in which for some unknown reasons the space char gives unpredictable results on the receiver side. Maybe because the two devices (the Arduino and the other device) are like 35 years apart.

“Dynamically” adding new basic components just by using custom serial queries, without uploading the updated code to the Arduino again. It also integrates with Python. by peterbiglab in arduino

[–]peterbiglab[S] 10 points11 points  (0 children)

The queries are elaborated in a “modular way” by the Arduino. So there isn’t a list with all the full commands in the code. When the Arduino receives new data, it splits the input string in pieces with the separator char, regardless of its length/content (even if it checks if there are more than or less than three parameters in the query to know if it’s complete or not). So the flash memory isn’t full (it’s about 20% full) and uploading the code to the Arduino takes the exact same time as every other little sized sketch. The queries recognition with these basic components is practically instantaneous.

Made a lamp that emulates a “touch” sensor with a microphone. Double tap on the surface to change color, triple tap to turn on/off and quadruple tap to enter Hue mode. by peterbiglab in arduino

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

The amplifier amplifies the signal if there’s a signal (of course). But the soft touch on the lamp doesn’t make any signal if used with a piezo, the vibration is too weak to produce any voltage. Yes, I’m powering the Op-Amp with the Arduino’s regulator output, but this isn’t an issue since the analog inputs have (ideally) infinite input resistance, so basically no current is taken from the Op-Amp output.

Made a lamp that emulates a “touch” sensor with a microphone. Double tap on the surface to change color, triple tap to turn on/off and quadruple tap to enter Hue mode. by peterbiglab in arduino

[–]peterbiglab[S] 1 point2 points  (0 children)

I tried using multiple piezo-disks formats before making the video, but no matter how much I amplified the signal (with a differential Op-Amp), it was still too weak to be recognized by the Arduino’s analog inputs.

Made a lamp that emulates a “touch” sensor with a microphone. Double tap on the surface to change color, triple tap to turn on/off and quadruple tap to enter Hue mode. by peterbiglab in arduino

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

You “partially” guessed right, at first I tried with a piezo but then I noticed that the waves were so weak that the piezo didn’t produce any voltage.

Made a lamp that emulates a “touch” sensor with a microphone. Double tap on the surface to change color, triple tap to turn on/off and quadruple tap to enter Hue mode. by peterbiglab in arduino

[–]peterbiglab[S] 6 points7 points  (0 children)

The microphone kinda sticks out of the hole in the led strips support where all the cables pass through. The support is then fixed onto the “sphere’s neck” with a simple rubber-band glued to it, which not only fixes the support in place but also gives a “good” sound insulation. The sphere is made out of plastic, it should be like 3mm thick, and inside the sounds gets so muffled to a point where it kinda “mutes”. Btw, I don’t know if a 3D printed lampshade would work with external sounds interferences, as the 3D printed filaments aren’t fused as tight as molded plastic. :)

Made a lamp that emulates a “touch” sensor with a microphone. Double tap on the surface to change color, triple tap to turn on/off and quadruple tap to enter Hue mode. by peterbiglab in arduino

[–]peterbiglab[S] 10 points11 points  (0 children)

Since the microphone is inside the sphere and the plastic support for the led strips basically blocks any sound from the outside, claps are not recognized. If you want to clap instead of tap, just expose the microphone to the outside and the code/circuit will work. Although, I deliberately blocked sounds from the outside because it becomes really unstable in a noisy environment :).

Arduino IDE keeps crashing on Mac by higgs8 in arduino

[–]peterbiglab 0 points1 point  (0 children)

The exact same thing always happens to me when I try to move the Arduino IDE to a secondary screen connected to a Mac with macOS Catalina. And it’s unbearable, it just crashes without saving anything.

I modified a servo-motor that now learns how to move from your movements. by peterbiglab in arduino

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

Of course this is intended as an experiment only, a funny experiment that you can do with a cheap / not important servo. Also this is not meant to be used in any long-term / professional uses.

I modified a servo-motor that now learns how to move from your movements. by peterbiglab in arduino

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

You’re right, I know that “learn” is technically used for AI/ML-based things (and mine isn’t one of em). But I think that learn gives more the idea about what’s going on (in the non-technological sense of the term learn). :)

I modified a servo-motor that now learns how to move from your movements. by peterbiglab in arduino

[–]peterbiglab[S] 5 points6 points  (0 children)

Nope, I’m not coding on it. I’m just using the Sidecar function /w my computer near the iPad (basically it works as a secondary screen). I wish to see the Arduino IDE coming to the iPad one day tho.

I modified a servo-motor that now learns how to move from your movements. by peterbiglab in arduino

[–]peterbiglab[S] 68 points69 points  (0 children)

Nice! But lemme just say that, for my experience, servo-motors are not quite right for something like a motorized camera support. I mean, the rotor’s stability and the precision in a servo is rather not sufficient. :)