Most Popular

1500 questions
4
votes
1 answer

Arduino UNO won't move servo

I have a simple MG996 servo motor and I am trying to make it move with my Arduino Uno. I tried different ways of wiring but nothing seems to work as fully expected. For the wiring I followed this video: https://www.youtube.com/watch?v=b_xvu6wWafA…
4
votes
2 answers

How to switch 12V with esp32?

Hello i want to switch electric door lock (12V, 170mA) with esp32(3.3V). If is it possible I want use tranzistor. I tried to use IRF520, but it only worked with 5V. My sugestion is use 2 tranzistors one would switch 5V to IRF520 which would switch…
Noobie
  • 43
  • 1
  • 4
4
votes
3 answers

Arduino voltage misunderstanding

For arduino nano. I set digital pins 1,2,3,4,5 to HIGH (I do this using digitalWrite(pin,HIGH) for each pin). Does this mean that 5V is being sent through each of the pins so in total there is 25V going out from the arduino? How is this possible?
4
votes
1 answer

Custom LED toggling function: one out of three LEDs misbehave

I connected three LEDs to an Arduino Uno and wrote a simple LED class. I toggle all the leds the main loop, but for some reason one led (connected to pin7) always misbehaves, skips one toggle or stays on all the time. Initially all leds are off (in…
Jurc192
  • 73
  • 6
4
votes
4 answers

How do I connect Arduino to a Bluegiga112?

I am a new user of Arduino (I have a Arduino Due) and also I am a new user of BLE112 (Bluegiga module 112) My teacher told me to make the BLE112 advertisable and furthermore he told me to look for information about UART@115K. (The Ble112 he gave me…
FirstTimeUser
  • 41
  • 1
  • 3
4
votes
2 answers

Arduino Uno R3 stops executing code, when trying to instantiate multiple HX711 objects

This is my first time asking something on this platform, so if form or anything else is off, please feel free to point out things about how I could refine it and ask more concisely in the future. I'm trying to develop an orthosis, which uses 4 load…
pyrob2142
  • 41
  • 3
4
votes
1 answer

XBee+Arduino communication problem

I tried testing the system and I’m not sure if the problem is with the XBee’s, the transmitting code, or the receiving code. Before I post my code, I will explain what we are doing with the signals. We have three analog signals that will be sent…
user734
  • 91
  • 1
  • 4
4
votes
1 answer

Turning off a LED

I am trying to make 2 alarms for 2 different times using 2 LED's which should turn on when the time corresponds to the set time and then if a pushbutton is pressed, the LED should turn off. For the first alarm, the first LED can be turn off with the…
Biancaaa
  • 61
  • 5
4
votes
2 answers

Code for ESP32 without Development Board

I'm very new to microcontrollers. I'd like to start developing for the esp32, as it has integrated wifi & bluetooth for quite cheap. This being said, i don't have a board yet. Is there a way i can emulate an esp32 board, so i can start programming…
user76979
  • 41
  • 2
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…
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

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,278
  • 10
  • 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
  • 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