Most Popular
1500 questions
6
votes
1 answer
What are the benfits of global variables over static class members?
On an embedded system we use global variables often to keep dynamic memory consumption on heap and stack low. But global variables are also considered bad programming practice if they aren't used in a global sense, i.e. they are used only inside one…
Ariser
- 577
- 1
- 7
- 25
6
votes
1 answer
Powering 5V Accesories
I'm using an Uno to control NeoPixels LED strips (60 per metre). These are powered with a 5V DC supply. Now, when using USB to power the Arduino it works lovely. However I want to move the Arduino into a standalone "installation" where I'll only…
CircularRecursion
- 179
- 3
6
votes
1 answer
PWM signaling with Arduinos: What is the reason for the ground connection?
This may sound like a very dumb question and I apologise in advance.
I've gone through reading about PWM and working on some example sketches to control PC fan speeds using PWM and Arduino.
In all documents I read, it is mentioned that "PWM is a…
Phil
- 455
- 2
- 4
- 12
6
votes
2 answers
How to choose between AM230x and DHT22 temperature and humidity sensors?
I'm looking forward to getting an accurate humidity and temperature sensor.
Right when I decided to go with a DHT22 module, I saw AM230x (AM2301, for example).
How do I choose between DHT22 and AM2301?
Phil
- 455
- 2
- 4
- 12
6
votes
1 answer
ESP32 IR remote
my board is a firebeetle esp32 that I am using as an IR remote.
After using the Ken Shirrif IRremote library for about 6 months successfully, then the time came to change a few things on the web front end. This has been a disaster.
I tried to…
user53695
6
votes
2 answers
Oil Pressure / Water Pressure / Boost Pressure ( Turbo Engine )
I'm an automotive enthusiast and I want to build some gauges by myself using Arduino.
I was taking a look at this pressure transducer or sender, 100 psi, stainless steel, for oil, fuel, air, water and I was thinking if I can use this sensor to do…
Luis Javier Peña Ureña
- 87
- 3
- 7
6
votes
4 answers
Arduino disconnecting at upload
This problem doesn't seen to be very common around the Arduino community.
Basically, what's happening is that as soon as I click the upload button, the Arduino IDE tells me that my Arduino board is not connected. What's strange though is that the…
Fadi Hanna AL-Kass
- 195
- 1
- 6
6
votes
2 answers
Can I power an NodeMCU trough VIN providing 5v
I have a spb 8266 board, an ESP-12E NodeMCU.
I broke my micro USB.
There's this piece of information but my case is unclear:
Can I use the micro usb's 5v to power the board through the VIN or do any solution require more equipment than that ?
(The…
Иво Недев
- 173
- 1
- 1
- 5
6
votes
2 answers
Webserver on Arduino
How can I run a webserver in a Arduino Uno? I want to use my Arduino to monitor things in my home such as temperature. I want to be able to access this data through the internet.
tstew
- 729
- 1
- 6
- 26
6
votes
2 answers
Simple multiplication bug
Executing the following code always gives -511 as a result, I performed many tests, and it seems that results are correct from 0 * 0 to 181 * 181, beyond that, results are abnormal, I tried many types for the z variable (int, long, float) without…
Huskarnov
- 69
- 3
6
votes
4 answers
How to assign text stored in a local file to a string at compile time
I'm developing a program that uses the HTML server in the WiFi101 library.
My hardware does not have SD card storage so all source html needs to be stored as strings in the sketch at compile time. To aid in development I want to keep my html files…
Geordie
- 195
- 1
- 7
6
votes
4 answers
How do I make a Servo Stop if it Hits Resistance?
I am trying to make a device which will turn a turn key with a servo.
However, I want it to stop turning the turn key if the resistance is too great (meaning it is locked and will not ever turn).
How do I do this? Would I just tell it to turn and…
Student-LTB
- 61
- 1
- 2
6
votes
5 answers
Can I have two separated serial monitor for the same arduino board connected to PC?
I'd like to split serial communication into the two channels: 1) debug info, 2) application data.
There's only one Serial object to use.
However, maybe, there is an alternative way to print data separately, is there?
P.S. I use Nano and UNO.
zhekaus
- 439
- 2
- 6
- 16
6
votes
6 answers
missing /dev/ttyACM* on Ubuntu
I installed the Arduino IDE according to the arduino.cc instructions (invoking install.sh) rather than sudo apt install .... The ports /dev/ttyACM* were present when the following Linux command is issued.
ls -l /dev/ttyACM*
This shows that the…
H2ONaCl
- 193
- 1
- 1
- 7
6
votes
1 answer
ESP8266 - does it really have terrible wifi range by default?
ESP8266 - does it really have terrible WiFi range by default??
First time to try this module out and we're disappointed with the range.. as per our testing we can only get max 5m WiFi range line of sight (LOS) to our regular WiFi router (TPlink…
BrownChiLD
- 161
- 1
- 1
- 3