Most Popular
1500 questions
4
votes
5 answers
Mass testing of Arduinos
I am using Arduino for an IoT class (40 students). I have set up a test program to check all sensors and actuators used in the class (we need to recycle for next semester). However, I would also like to check the Arduino's themselves (and also…
Lasse Berntzen
- 41
- 3
4
votes
5 answers
How can I run multiple programs on an Arduino?
I'm trying to get students to experiment with Arduino. However, due to a lack of boards, two teams of students will collaborate on each board. They will push their own code (independent from each other) and use half the pins.
The "hardware" part…
Giulio Muscarello
- 143
- 1
- 1
- 5
4
votes
2 answers
Why does a Piezo Buzzer not require a PWM digital pin (Gallileo Gen2)?
According to my current (poor) understanding, only the PWM pins (with the ~) among the digital pins (ignoring Analog pins) can be passed to analogWrite(). I understand the servo therefore - since interfaced by a variable voltage signal - must be…
Anti Earth
- 145
- 1
- 2
- 12
4
votes
1 answer
ESP32S v1.1 NodeMcu vs ESP32 DevKitV1
I have two different ESP32 development boards labelled "ESP32S v1.1 NODEMCU" (A) and "ESP32 DEVKITV1" (B). From what I can tell they have the same major components, but their pins and general layout are quite different. I assume they are both…
Dave New
- 141
- 1
- 1
- 5
4
votes
1 answer
Scheduler comparison for Arduino Uno
I understand that the official Arduino Scheduler doesn't support Uno, and there are several third-party schedulers to fill the gap, notably, Scheduler, Arduino-Scheduler and TaskScheduler. There are probably many more, though I see that many…
Dmitry Grigoryev
- 1,288
- 11
- 31
4
votes
4 answers
Why am I receiving random input values in my Arduino?
I want to use a switch for my Arduino using digitalRead(), but I keep receiving random inputs. Whenever I connect energy to that pin, it always returns HIGH, but otherwise it goes completely random.
I have tried using a resistor for the input pin,…
john papp
- 57
- 1
- 4
4
votes
1 answer
HobbyTronics UNO PRO Board Definition does not work in newer IDE versions
I have a HobbyTronics UNO PRO that replaces the UNO's 328P in DIP with an ATMega1284 on an adapter board:
I cannot link to the original page since it does not exist anymore. But, it is available through archive.org.
The original board definition,…
hinton
- 43
- 4
4
votes
5 answers
What are some steps to attach an Arduino to an electric heater?
I have the below portable electric heater, but I would love to control it's start AND stop time using an Arduino. As-is, it does not come with a stop feature. SO, I have a burning question. How can I get an Arduino to start and stop this heater at…
Jose Leon
- 735
- 1
- 6
- 11
4
votes
2 answers
Problem with a function having a parameter with a default value
I've got a problem using a default value for a function parameter.
This code gives "'blink' was not declared in this scope":
void loop(void) {
blink(12, 2, 1000);
}
void blink(const uint8_t led, int num, const uint16_t l = 12) {
…
MichelBen
- 51
- 1
- 4
4
votes
2 answers
Why doesn't this motor turn?
When I upload the code, the DC motor makes a humming noise, but doesn't turn.
//2-Way motor control
int motorPin1 = 5; // One motor wire connected to digital pin 5
int motorPin2 = 6; // One motor wire connected to digital pin 6
// The…
Pyraminx
- 179
- 1
- 6
4
votes
1 answer
Problems with green TWI (I2C) port on Arduino Braccio Shield
Summary: The green TWI/I2C port on my Braccio shield I2C port hasn't worked for me so far. Looking for advice or information please.
Detail:
I'm using the Arduino (Tinkerkit) Braccio robot arm for self education. It comes with a Uno based Braccio…
RowanP
- 869
- 6
- 21
4
votes
1 answer
Non-blocking SoftwareSerial.Write
How to use SoftwareSerial.Write without blocking if buffer is full? Serial.write blocks if the buffer is full. So I need to check Serial.availableforwrite before calling write to prevent blocking. But there is no SoftwareSerial.availableforwrite.…
firendlyQuestion
- 45
- 4
4
votes
1 answer
How do I control the onboard LEDs of my Arduino Nano 33 BLE Sense?
I picked up my Arduino Nano 33 BLE Sense for the first time in a while and ran the classic "Blink" sketch to make sure it was alright. After slight usage, I wanted to play with the onboard LEDs. When I run the following code, the onboard LED does…
Ivan
- 43
- 1
- 1
- 3
4
votes
2 answers
Initializing Array of structs
I defined myself a struct:
typedef struct {
unsigned char current;
unsigned char start;
unsigned char target;
unsigned long startTime;
unsigned int duration;
} led;
I was able to initialize an instance of that like this:
led h_red =…
iGEL
- 143
- 1
- 1
- 4
4
votes
1 answer
ATTiny13 Interrupt Issue
I have recently been working on a project that I had initially been designing with an Arduino Nano, and I was able to create functioning code for my application, but for cost / space reduction I decided to port the application to an ATTiny13…
Kevin Sullivan
- 143
- 3