Most Popular

1500 questions
6
votes
4 answers

Arduino ESP32 Import Error No module named serial

I googled and couldn't find a solution to my nice problem: I have Ubuntu and I want to program a ESP32 ............... I tried a lot of pip commands ... but it didnt work. You have any idea how to install the correct packages? Maybe you can tell me…
jento
  • 65
  • 1
  • 1
  • 2
6
votes
3 answers

Arduino and fingerprint scanner - can I get the fingerprint scanner data?

I am currently planning a thesis that involve scanning fingerprints and storing the data in a database. The problem is that I do not know if it is possible for me/us to get the fingerprint data or variables scanned by the fingerprint scanner. I…
FaizTact
  • 81
  • 2
  • 7
6
votes
2 answers

When it comes to UART to RS485 communication, what is the difference between the 'MAX485' and the 'HW-0519' module?

I recently found this model with the ID 'HW-0519' on it. It can be found online (HW-0519 in Aliexpress) and is sold for the purpose of converting UART to RS485 communication using Arduino devices. The MAX485 module (MAX485 in Banggood) is the more…
C Vith
  • 133
  • 1
  • 7
6
votes
2 answers

Random(min,max) Function only giving ~50 range no matter what the values?

I can't get the min,max range to function properly. Monitoring the serial, only gives out ~50 difference from the min. I then added truerandom.ino to try to fix, but no help. const int ledPin = 13; // the number of the LED pin // Variables will…
Eagle1
  • 61
  • 1
  • 6
6
votes
3 answers

Using Arduino as a standalone compiler

I mostly program in C/C++ so I conviniently have a GCC compiler for all my compilations. I was wondering if there is a special compiler for Arduino that can be used just like the GCC Compiler? Because just taking a .ino sketch and passing it to the…
6
votes
1 answer

H-Bridge vs Motor shield for the arduino

Assuming we wish to control a small toy car with an arduino - meaning spinning the right and left wheels forward and backward and being able to break and control the speed, where each wheel has it's own engine (but of course two engines on the same…
Avenger
  • 237
  • 2
  • 5
6
votes
1 answer

Serial.write and Serial.println return different values? Cannot use correct ones

I have a text file on an SD card, and I am trying to print the lines to the serial monitor. This Code Works: #include #include File myFile; void setup() { Serial.begin(9600); Serial.print("Initializing SD card..."); …
user3151828
  • 65
  • 1
  • 7
6
votes
5 answers

Is there any better choice other than using delay() for a 6-hours delay?

I am designing an incubator system and I need to drive a motor forward and reverse every 6 hours. Is there any better choice other than using delay()? A 6-hours delay seems a little unprofessional.
henzup
  • 63
  • 1
  • 3
6
votes
5 answers

How do I convert Arduino to an ATmega328P-based project?

I have an Arduino board where I am using some of the peripherals like LCD with I2C. Now I want to convert this Arduino-based circuit to an atmega328p based circuit, i.e. atmega328p with LCD and I2C. Here is my actual question: Can I use the same…
6
votes
1 answer

What's wrong? FastLED and WS2812B simulation works, physical build doesn't

I'm new to Arduino coding and FastLED. When it comes to coding, I'm a complete novice, however, I've been watching YouTube tutorials to help my knowledge. I have successfully run my code on Wokwi, however, when I upload my code to my Arduino, it…
Joey W
  • 61
  • 1
6
votes
3 answers

When is SPI.beginTransaction required?

I have been gradually converting many devices from i2c to spi for various reasons. I noticed in tutorials like this from arduino.cc that SPI.beginTransaction is explicitly called out. Then they link to examples such as this and this where they…
Matt
  • 205
  • 3
  • 9
6
votes
4 answers

RF remote control using VirtualWire on ATtiny85 running at 8MHz on internal oscillator

I'm trying to make an RF remote control using ATtiny85 running at 8MHz on internal oscillator, this cheap RF 434MHz transmitter module (like the one below), and VirtualWire lib, but had no success so far. So, before I go any further, is it…
Ricardo
  • 3,380
  • 2
  • 25
  • 54
6
votes
4 answers

ESP8266 WiFi Not Connecting to Internet Without Static IP

I am seeing some very strange behavior with my ESP8266. When I connect it to the WiFi for the first couple of times I am not seeing any issues and the ESP8266 connects just fine. But after an arbitrary amount of times (like when I restart the unit)…
Armand Maree
  • 171
  • 1
  • 6
6
votes
2 answers

No programmers available for this board - Programming ESP32 Cam with Ardunio IDE

This is my first time working with ESP32 Cam boards. I have followed the instructions as given in this site https://technoreview85.com/how-to-program-esp-32-cam-using-arduino-uno-board/ However my IDE doesn't display any programmers for this…
AfiJaabb
  • 219
  • 1
  • 3
  • 8
6
votes
1 answer

Arduino Mega not flashable with XBee PRO S2B

I have an Arduino Mega 2560 with a libelium XBee Shield. If I have an XBee S2 mounted on it and set the two jumpers to the USB setting or remove them, I am able to flash a program onto my Arduino. However, when I'm mounting one of my XBee PRO S2B (I…
soerface
  • 161
  • 4