Questions tagged [arduino]
Arduino is an open-source electronics prototyping platform.
91 questions
2votes
1answer
52views
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 ...
0votes
2answers
122views
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 ...
5votes
1answer
194views
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 ...
6votes
1answer
159views
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 ...
2votes
2answers
172views
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 ...
2votes
1answer
183views
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 ...
7votes
2answers
650views
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 ...
6votes
2answers
590views
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 ...
2votes
1answer
161views
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 ...
2votes
1answer
123views
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 ...
3votes
0answers
110views
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 ...
2votes
2answers
237views
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 ...
4votes
1answer
557views
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 ...
6votes
4answers
507views
Interactive shell for Arduino
Goal I needed to interact with microcontrollers (ESP8266 & ESP32) via the Serial interface, so I wrote a small interactive shell with the command pattern. The defined commands can either accept no ...
1vote
1answer
112views
Arduino algorithm
I have 3 push buttons, 3 leds, and 2 relays. When you push button1 once, the led1 turns on and timer is set to 10 sec. When push button1 twice, led2 turns on and timer is set to 20 sec. When push ...