Most Popular

1500 questions
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
  • 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
  • 938
  • 1
  • 9
  • 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
  • 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
  • 2
  • 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
  • 794
  • 4
  • 15
  • 41
5
votes
1 answer

How do I manipulate a large number of moving platforms?

I am trying to build a device that will allow me to control at least a couple hundred raising platforms. The goal of this is to create a real time editor for board games (Dungeons and Dragons). Ideally: All the platforms would move simultaneously…
user591
5
votes
1 answer

Useless box wiring and code

just want to give a back story first. So i saw this video on youtube about the useless box, and i thought that it would make a great gift for my 7 year old. So i went out and bought everything that the guy posted in his description box. Just want to…
PeterJoe
  • 53
  • 1
  • 4
5
votes
1 answer

Why does Arduino IDE take so long to open?

I have Arduino IDE, version 1.8.10 (Windows 10 x64, 8GB RAM, i5-7200 @2.5GHz) on a network drive mapped to D:, on a 100Mbit wired network and fast file server. If I navigate to the network shared folder and launch 'arduino.exe', it takes at least 2…
Ryan Griggs
  • 254
  • 2
  • 5
5
votes
2 answers

Are there any alternatives to Tinkercad Circuits that is PC application based instead of web app based?

I have been using Tinkercad's Circuits web application to create my Arduino circuits and apply my Arduino code (c++) for testing. Despite the amazing product they have and the fact it's free, I find myself very disappointed at times. Don't get me…
Arvo Bowen
  • 153
  • 1
  • 1
  • 5