Most Popular

1500 questions
7
votes
2 answers

How to read high voltage (40-65v) from a Solar Battery bank

I would like to monitor the battery voltage of a 48v solar battery system. The expected voltage range is 40-65v. I have tried creating a voltage divider with 2 resistors but with all values I have tried one resistor almost melts as soon as you…
Joelm
  • 73
  • 4
7
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…
Иво Недев
  • 183
  • 1
  • 1
  • 5
7
votes
3 answers

How to allow cross-domain requests on ESP8266WebServer

I am using a Raspberry Pi running Chrome (handling the user interface) and connecting via ajax to an Arduino D1 compatible using the IP address as follows: $.ajax({ type: "GET", url: "http://10.1.1.100/myfunc?id=5", …
Chiwda
  • 252
  • 1
  • 3
  • 11
7
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
  • 203
  • 1
  • 2
  • 7
7
votes
2 answers

How can I differentiate between multiple circuits?

I'm building a puzzle for an escape room. I want to give the user 6 wires and 6 terminals, then confirm that they've connected the correct wires to the correct terminals (one-to-one). My first (successful) attempt to implement this puzzle was to…
7
votes
4 answers

What design patterns can I use to handle user input and display updating?

I've used enough products with embedded microcontrollers and unresponsive UIs to know that it can make or break a product. Even a slight delay or lag between the button presses and the display updating, or button presses being ignored or double…
Cybergibbons
  • 5,420
  • 7
  • 34
  • 51
7
votes
4 answers

ATtiny85 minimum setup to blink led

What would be the (very) minimum schematic to make a ATtiny85 blink a led? Restrictions are: There must be a C program compiled and uploaded to it, just like an Arduino board would have. The code would use a simple "delay" to wait a little bit…
DrBeco
  • 269
  • 1
  • 2
  • 8
7
votes
2 answers

Is there a pullup on I2C?

I am using an Arduino Uno R3. It is not clear on the schematic whether there are pullups on the A4 and A5 I2C pins. Are there hardwired pullups or do I have to add them myself?
harry_p_6
  • 175
  • 9
7
votes
1 answer

Arduino IDE Display Code Line Numbers

In the Arduino IDE: How can I get the line numbers shown in a sidebar of the editor? It is hard to find which line my errors are referring to without them... I am using Arduino IDE on a form of Windows.
Dimitrios Desyllas
  • 363
  • 1
  • 2
  • 11
7
votes
1 answer

Why does Serial.print print only a value for 0-84 for a 100 integer array?

int a[100],i; void setup() { Serial.begin(9600); } void loop() { for(i=0; i<100; i++) { a[i] = i; Serial.println(a[i]); } exit(0); }
Anurag
  • 71
  • 2
7
votes
3 answers

Can't upload to my Nano after updating to Arduino AVR Boards 1.6.21

I recently had the Arduino IDE notify me of available boards updates, so I updated. Since then when I try to upload to my Nanos it fails: avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 10 of 10: not in sync:…
7
votes
5 answers

Extremely cheap "Arduino" for single tasks?

I have been thinking of a million things to do with my Arduino, but those things are extremely simple and it would leave my Arduino as a $25 waste. For example, programming Arduino to control my living room lights with my smartphone ... I was…
fantom
  • 173
  • 3
7
votes
2 answers

Use LoLin V3 pins starting with 'S' in Arduino

I have this LoLin NodeMcu V3 board: What are the pins S3, S2, S1, SC, S0, SK? Can I use them as GPIO in Arduino? Thank you for your help!
Péter Aradi
  • 173
  • 1
  • 1
  • 3
7
votes
2 answers

How to measure electrical conductivity using Arduino?

I want to measure TSS (Total soluble salt) in the soil. I have found in some literature that, through measuring of electrical conductivity, it is much easier to measure TSS. So, I thought, If I can measure electrical conductivity, it might be…
Bappa
  • 71
  • 1
  • 1
  • 4
7
votes
3 answers

Sainsmart LCD 2004 - LiquidCrytal_I2C library issue unable to compile

I bought a Sainsmart LCD2004 from Amazon to use with my Arduino Uno. I understand that since this LCD uses I2C a new library needs to be downloaded. From the sainsmart website I dowloaded the LCD 2004…
Caesar