Questions tagged [arduino]
Arduino is an open-source electronics prototyping platform.
93 questions
5 votes
5 answers
2k views
Chess Clock Code
The code below I've made is supposed to act as a chess clock when uploaded to a compatible Arduino. I've written everything, but I just want another set of eyes to look over the code in case I've ...
2 votes
1 answer
90 views
Hourly display new CppQuiz.org questions on an ESP32-powered e-ink screen
I wanted to develop something to put on my desk. It is not more than hobby project but it pushes me to keep learning new things. I'm looking for decent code review for four files. Here is github link ...
2 votes
1 answer
76 views
Synchronizing an embedded system with RTOS
I wrote this code for a make-up assignment to pass one of my college class and graduate from my program in the field of electronic and embedded system. It's pretty much the realization of a solar ...
1 vote
2 answers
164 views
Bare minimum implementation of Dallas 1-wire DS2401 slave for ATtiny9
I have completed my project and have it operating reliably on an Arduino nano - Arduino Sketch here. The target device is an ATtiny9. I used this project to make the jump from Arduino IDE to Microchip ...
5 votes
1 answer
221 views
Memory-optimizing arduino code to be able to print all files from SD card
I started an Arduino project that could execute instructions from an SD card file on the screen. I managed to do it, but another problem appeared: I can't print all the files from the SD card to the ...
6 votes
1 answer
205 views
De/Serialize uint32_t from/to ASCII to use it in Arduino code
Despite the intention is to use it in a C++ project I put the c tag also because there is nothing C++-only (except references :)) in the code (I did not compile it ...
2 votes
2 answers
204 views
Robot arm control
The code in question is in GitHub here. arm.h, armconstants.h and arm.cpp. Here are the key passages: arm.h ...
2 votes
1 answer
210 views
ESP32-12: Sample analog audio and send it via udp
I want to sample audio as a learning process. In the future i want to make my dorbell "smart" and stream the audio via VoIP. But as beginning i want to sample a simple audio signal from my ...
7 votes
2 answers
702 views
Arduino library to simplify differential drive robots
I've written code for an Arduino library to abstract away some of the underlying logic in a particular way of moving robots. Code is posted after explanations. I'm not assuming a high degree of ...
6 votes
2 answers
619 views
Drift correction for sensor readings using a high-pass filter
An embedded project my team is working on is having issues with sensor drift over time. To solve this, I thought it might work to use a high-pass filter, since the portion of the signal that we care ...
2 votes
1 answer
179 views
Simulate 2-bit half adder with 2-bit inputs on Arduino without using logic gates
You are to simulate a 2-bit half adder. You are not required to implement a real 2-bit half adder using logic gates; you are going to implement a black-box system using the microcontroller that ...
2 votes
1 answer
160 views
Matrix led 7x10 with arduino
Good afternoon, a few days ago I finished a personal project of a 7x10 led matrix programmed with the ATMEGA328p microcontroller. To control the matrix I use 2 74HC595 shift registers in cascade in ...
3 votes
0 answers
123 views
Arduino portenta H7 compatible message encryption and decryption
I am looking to build a message encryption/decription method that would allow messages to be encrypted in a timely fashion on board an Arduino Portenta H7, using as much of the onboard hardware ...
2 votes
2 answers
289 views
State-machine class based upon arduino toolchain
In my quest to search or develop the 'perfect' state machine I have built the following class. With the class you can make a state machine object which comes with timing and transition methods. Being ...
4 votes
1 answer
600 views
Gear Shift Indicator using Hall Effect Sensors & 8x8 LED Display
I wired up a Gear Shift Indicator for my dad's car to display what gear it is currently in, and showing changes with animations (sliding up and down as appropriate, with a few bonus ones for fun at ...