Most Popular

1500 questions
4
votes
5 answers

Why use a module rather than sensor directly?

I'm trying to understand when one would use an Arduino module rather than directly a sensor. Here's an example to contextualize my question: I need to use a Hall sensor to measure the number of rotations per minute of a magnet mounted on a computer…
Andrea
  • 141
  • 1
  • 3
4
votes
1 answer

Can't stop the 3 pin active buzzer

I was simply trying to program a buzzer with the ultrasonic HC SR04 and 128x64 OLED display. The buzzer is an active buzzer (3 pin) on a small board. The problem is that, once on, it never stops buzzing. I have used the following code which is…
Bukaida
  • 141
  • 2
4
votes
1 answer

Value of the counter collide on my lcd while decreasing. How can I remove it?

#include LiquidCrystal lcd(12,11,5,4,3,2); int visitor=0; //variable for counting visitor number unsigned long timer_1,timer_2; //variables for recording time for ir_1 and ir_2 void setup() { lcd.begin(20,4); …
Rappy Saha
  • 43
  • 7
4
votes
4 answers

Bi-directional UART communication on single data wire, possible?

The nano is inside of the house, and the pro mini is outside of the house. I want to send/receive text between them. The communication will be always nano sending text to mini, and then mini sending text to pro in response. There will be no case…
Damn Vegetables
  • 357
  • 1
  • 3
  • 9
4
votes
1 answer

3th time blown à Nano every

Like subject all ready telling you, I blew up my 3th Nano every. I mounted them on a perf board, soldered with 99% tin 1.0mm and a Flux, cleaned with flux remover, etc... When I then power them up through USB I have a short on pin 29 and 30 (Vin…
Joeri VA
  • 49
  • 2
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

Analog read not working while using WiFi

I have an ESP32, the current program running on it uses WiFi but, if I use WiFi and Analog read at the same time, Analog read does not work. Why does this happen and what's the way around it? Hardware - ESP32, Pin 25 for the ADC Code- #include…
Coder9390
  • 512
  • 1
  • 7
  • 25
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
  • 1
  • 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