All Questions
22 questions
1
vote
2
answers
142
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 ...
2
votes
1
answer
166
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
137
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 ...
6
votes
4
answers
536
views
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 ...
1
vote
1
answer
134
views
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 ...
3
votes
2
answers
333
views
Arduino code and PING))) ultrasonic rangefinder
Context
I've started digging into Arduino and different type of sensors which is fun, but I'm worried that that my coding is too explicit. I've lots of experience for coding corporate programs, though ...
3
votes
0
answers
55
views
esp8266 code for correctness of reset and overall performance [closed]
Please review my code for the performance and correctness, everything works and we get visible wifi access points by opening http://esp8266_ip_addres/hotspots ...
3
votes
1
answer
1k
views
Arduino code for multi button state change detection
I created state change detection for multiple buttons, which is intended to run on my Arduino for a touchpad project. In a nutshell, the code makes sure that the Arduino only reacts to button presses ...
1
vote
1
answer
185
views
Traffic Light which revolves around Serial Communication
Assignment description
This is the improved code for a question I've posted earlier. I'd like to receive feedback on an assignment which I'm currently working on. I have to make two traffic lights ...
2
votes
1
answer
185
views
Feedback on Traffic Light which revolves around Serial Communication
Assignment description
I'd like to receive feedback on an assignment which I'm currently working on. I have to make two traffic lights which allow traffic to run smoothly. I'm using a master Arduino ...
-1
votes
1
answer
372
views
Interlock of some equipments in electrical power system using simple Arduino Uno code [closed]
I'm trying to implement some logic functions essential to control a small power system consisting of 2 Transformers labeled T1 and T2, 2 Generators (G1 and G2) and a bus tie (BT). I'm not going to ...
4
votes
1
answer
140
views
This program reads from serial port, Saves this to a text file, increments file name each time it is run
I want to condense it and get rid of any noob programming errors.
The code works fine but I know it's not as elegant as it could be and I really want to improve. Your advice would be brilliant!
I've ...
4
votes
1
answer
95
views
Average readouts from multiple IR sensors with Arduino
I've written an Arduino sketch to continuously read values from multiple analog IR distance sensors, average the last 7 values and output in millimeters. Being pretty new to both Arduino and embedded ...
6
votes
1
answer
120
views
Arduino controller to control the backlighting of a gear selector
Background
The gear selector on a car allows the driver to select which state the transmission should be in.
In the example picture, one of the five letters (P, R, N, D & S) lights up to indicate ...
8
votes
1
answer
114
views
Process bytes and check for start key
I am working with some wireless communication in Arduino. My data will be wirelessly received like so:
97
97
97
...
...
979797 is the address of the transmitter. ...