Most Popular
1500 questions
7
votes
1 answer
Pressure transducer / sensor (0.5 - 4.5V) innacurate analog pin readings
I have a relatively cheap 0-15psi pressure transducer. It has 3 pins - ground 5V and signal. The signal outputs a voltage of 0.5V to 4.5V based on pressure from 0psi to 15psi. I can verify it does respond to significant pressure increases so it…
DominicM
- 597
- 3
- 7
- 13
7
votes
0 answers
nRF24L01 continuously reading closed pipe
I am testing communication between two nRF24L01 modules. The receiver is getting the transmitted message but is also continuously reading (null) data from a closed pipe? I am using the RF24 by TMRh20 version 1.3.12 library on an Arduino Pro Mini…
PyNZ
- 131
- 4
7
votes
1 answer
How to build (concat) a string with big numbers
new to arduino I'm struggling with what sounds like fairly n00b problem...
I've wired up a adafruit GPS-board to my Arduino and it is working as it spits out GPS data to the serial port with Serial.print(GPS.latitude, DEC)
I Now want to concat a…
stUrb
- 351
- 2
- 5
- 10
7
votes
5 answers
What is the best technique to design a 20 push button circuit
I will be controlling a robot with more than 10 motors which means I'll need 2 buttons each to control moving forward and backward. My controller is an Arduino mega. Is 1 pin = 1 button the best solution here? Or should I use another IC for this?
Julius
- 91
- 1
- 6
7
votes
1 answer
How to use RS-232 sheild as software serial port?
I would like to be able to use a USB port at the same time as an RS-232 port with my Arduino Uno board. I unwittingly bought a shield that (I think?) overrides the USB port when it is mounted to the Arduino…
user_name
- 317
- 1
- 3
- 11
7
votes
6 answers
Is it possible to generate an exact 15 kHz clock pulse using an Arduino?
I want to generate a 15 kHz pulse with an Arduino using Timer1, but the problem is that if we want a 15000 Hz clock we need to initialize the timer with 1/15000 seconds or 66.66 microseconds, but we can only pass integers without any decimal…
astrick
- 193
- 1
- 9
7
votes
4 answers
Access serial monitor on linux cli? Using arduino-cli?
I have an Arduino Uno connected via USB to a Raspberry Pi. The Raspberry Pi is accessible via SSH only.
Just started a bit with arduino-cli. I upload a sketch which reads my analog pins. How can I access the serial monitor to get the data?
groovehunter
- 179
- 1
- 1
- 4
7
votes
1 answer
Adafruit_LEDBackpack library interfering with analog input reading
I'm trying to do something I think would be simple. I'd like to read the input of a electret microphone board and update the Adafruit 24-segment LED Bar Graph. I got each individual item working perfectly: I can read the input of the microphone on…
OneCleverMonkey
- 71
- 3
7
votes
2 answers
Can you use Serial Port as a variable?
I am doing a project where, for troubleshooting reasons, I find myself often swapping components to different serial ports. Maybe one time it's in Serial, then in Serial1, maybe I need to try if software serial works.
But changing every line where…
metichi
- 181
- 1
- 4
7
votes
3 answers
Measuring li-ion that arduino is running from
I am using a 5v Arduino pro mini (with regulator and power led removed).
I have been reading how to accurately measure Li-ion batteries when powering from the same battery you are trying to measure from. Using the 1.1V internal analog reference to…
Lindsay Cox
- 103
- 6
7
votes
4 answers
Using esp-wroom-32 without a development board
There are lots of examples on the internet on how to build Arduino from scratch such as IN THIS LINK. I will like to do the same but with the esp32.
I have this development board:
And I am able to program it with the Arduino framework/IDE thanks to…
Tono Nam
- 966
- 1
- 10
- 22
7
votes
2 answers
Most power efficient way to constantly save 2 kilobytes of data per second
I would like to constantly save data coming from sensors (for an activity tracker) while consuming as less battery as possible (I'd like to have a 4/5 days autonomy on a 3000 mAh battery) but I can't find the best way to save about 2 kBytes/s on a…
Pop Flamingo
- 335
- 1
- 2
- 8
7
votes
1 answer
What are these stray resistors on the Arduino Mega schematic?
I am using the Arduino Mega schematic found here and it's mostly clear, but there are a few resistors floating in the middle and I'm not quite sure what they're for or where they go:
Does anyone know what these are and where they go?
3ddavies
- 193
- 5
7
votes
3 answers
How to deep sleep ATtiny/ATmega (to run for years with batteries) but still detect a button press?
Question (TL;DR): what is the optimal method to deep sleep (to run an ATtiny45 or ATmega on batteries for 1+ year) but still be able to detect a button press? Is it possible to deep sleep until a button is pressed?
I'm using a classic "debounce"…
Basj
- 449
- 2
- 9
- 23
7
votes
1 answer
Include guards vs #pragma once
Is there any particular reason why #pragma once doesn't seem to be used in Arduino code? Is this just because it's not a well-known feature, or is there some overriding reason to use #ifndef XXX_H/#define XXX_H/#endif?
Tim Long
- 305
- 3
- 12