Most Popular
1500 questions
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…
Jonathan Dautrich
- 173
- 3
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,350
- 7
- 33
- 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
- 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:…
David Harkness
- 73
- 1
- 5
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
1 answer
Two batteries sharing ground?
I need to power my arduino and 2 DC motors requiring 6V each, I want to power the DC motors with a 6V battery through the vM pin on an h-bridge and use a 9V battery to power the Arduino itself.
On my breadboard I have a dedicated power line and…
Kartashuvit
- 73
- 1
- 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
7
votes
1 answer
Hooking up LCD screens reclaimed from old camcorders to Arduino
Has anyone had any luck using LCD screens reclaimed from old electronics with Arduino, such as camcorders etc?
My 8 yr old has an old sony handycam (dcr-trv103) in bits and now wants to use the LCD screen with the arduino. I'm not even sure how I…
Agent Zebra
- 211
- 3
- 9
7
votes
5 answers
When Raspberry Pi is preferred over Arduino
We are doing some projects in class. One of my friends is doing a weather and humidity station using raspberry Pi with a couple of sensors and LCD. I have a little experience in Arduino. So I asked her, why doesn't she do it using an Arduino? She…
Meenie Leis
- 193
- 1
- 7
7
votes
2 answers
Storage usage of methods compared to copied code
When you have really small snippets of code that are repeated several times in your micro controller program, is it better to write a method? I mean better in terms of performance and storage usage. I know that when programming for PC, code…
Lehue
- 193
- 6