Most Popular

1500 questions
5
votes
3 answers

Corrupted output from HC-05 Bluetooth module

I have arduino Pro Mini 3.3V version with hc-05 module connected to 3.3V/GND and RXI/TX0 pins. I am then using my android phone to connect to the module. It shows up and pairs fine. Then I use BlueTerm app to view the output. I am seeing output that…
DominicM
  • 597
  • 3
  • 7
  • 13
5
votes
1 answer

ST7789 TFT display only shows a correct image while Arduino reset button is held down - Why?

I am trying to get the ST7789 TFT display to work with Arduino. I followed online guides for connections and am using the fast library fron github and included workbench ino (https://github.com/cbm80amiga/Arduino_ST7789_Fast). Problem: The program…
WildCat
  • 323
  • 3
  • 11
5
votes
2 answers

Multiple Push buttons to one input

So I am trying to use one input to control an LCD display. The goal being that once one of the buttons is pressed it delivers a message. I have watched quite a few tutorials and can get the program to work sometimes. Yet, it is still pretty buggy…
5
votes
0 answers

Modbus TCP/IP using Arduino uno and ENC28J60 module

I have this project where I need a modbus tcp server that will host a series of sensor data for other modbus client devices to read. I use this Library by Andresoarmento This is the code i am using from the library example: #include…
Deadpool
  • 51
  • 2
5
votes
1 answer

Wrong documentation for Mega2560 SPI Pins?

This page https://store.arduino.cc/usa/mega-2560-r3 contains an image under the Documentation section which shows digital pins 10 to 13 with labels SS, MOSI, MISO, and SCK. EDIT: The documentation page has since been updated with the correct pin…
Mark
  • 197
  • 1
  • 1
  • 8
5
votes
1 answer

How to save a state - make an arduino run a code only once/make aruduino bahave differently the next time he is on

Im building a arduino based bicycle speedometer. When the code starts the user picks his bike size (which I need to calculate the radius). Then I have a state finite machine where the user taps the button between speed, time and temperature. I need…
Marin Filipovic
  • 123
  • 1
  • 1
  • 6
5
votes
2 answers

ESP32 open "captive portal" on connected

I am using the default example SimpleWiFiServer that comes as an example from the ESP32: #include #include #include #define LED_BUILTIN 2 // Set the GPIO pin where you connected your test LED or comment this…
Tono Nam
  • 966
  • 1
  • 10
  • 22
5
votes
1 answer

Switching a Solenoid Using Arduino's 5V Output?

I'm a bit stumped on how to switch on a solenoid using a transistor using my Arduino Nano's 5v Output. The solenoid runs on 12V, so I used an NPN transistor to connect the 12V source to the solenoid whenever Arduino sends current to the transistor's…
I Like
  • 205
  • 1
  • 7
5
votes
2 answers

Jumping to bootloader from application code in atmega328p

I'm trying to program an Arduino Uno (atmega328p) using only the serial Tx/Rx lines (no DTR, so no automatic reset). This is so I can upload code via WiFi/TCP using an ESP-01. To achieve this, I need to Arduino sketch/application to reset itself…
Nuno
  • 63
  • 1
  • 5
5
votes
1 answer

Touching a capacitive button, non-mechanically

This is not about using a capacitive button to control an Arduino; it is the opposite. I would like to "touch" a capacitive button on another conventional device. There could be a way like actually moving a finger-like stick and touch the button,…
Damn Vegetables
  • 357
  • 1
  • 3
  • 9
5
votes
2 answers

NodeMCU wiring for Serial1?

I'm trying to get telemetry data to be sent out Serial1 on the NodeMCU board. I read that TX is (by default) mapped to pin D4. Ultimately, there will be a Raspberry that will be listening for these messages, but I don't have it yet. So to…
pathrider
  • 161
  • 1
  • 4
5
votes
4 answers

How can a function/method determine if a const array passed in is PROGMEM (flash) or not (RAM)?

Is it possible for a function/method to know if a constant array that has been passed in is in flash or RAM? If I have a method or function that receives a constant array that is in RAM, the array is declared like this: const uint8_t MY_ARRAY[] = {…
Casey
  • 151
  • 6
5
votes
1 answer

Vin & VU pins of NodeMCU V3

Can we use the vin pin of the lolin v3 nodeMCU as a 5V supply. If yes, i checked mine with a multimeter. At max, it gives a voltage of 2V. Is my pin blown out? Also, can use the VU pin as a 5V supply? Will using it cause any problems to my laptop's…
Yash Shah
  • 51
  • 1
  • 1
  • 2
5
votes
1 answer

Arduino /dev/ttyUSB0 permission denied even when user added to group "dialout' on Ubuntu 18.04

I bought Arduino Mega board (CH341 usb) and I am able to connect to /dev/ttyUSB0 (upload to device) only by using sudo. OS: Ubuntu 18.04 What I've tried: I have downloaded Arduino IDE and added my user to dialout group. Logged out and logged in.…
Vladimir Djuricic
  • 211
  • 1
  • 2
  • 8
5
votes
3 answers

What to do with Arduino floating pins?

I have some unused pins, should I connect them together and to the ground or leave them floating?
ElectronSurf
  • 814
  • 4
  • 17
  • 43