Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 2881

A sketch is compiled code that is uploaded to an Arduino board.

1 vote

Can you pass params to an arduino sketch?

Every ESP8266 has a unique MAC address. You could that information to distinguish between the different units. Something like if( mac='00:0a:95:9d:68:16' ){ ... }
Gerben's user avatar
  • 11.3k
1 vote

how to count blinking LED flashes using arduino uno boards and LDR?

LDRs only give an analog output, proportional to the amount of light. To make it give a HIGH and LOW value, you have to tweak the other resistor used in the voltage divider. Alternatively you coul …
Gerben's user avatar
  • 11.3k
3 votes
Accepted

How can I set a calculated value when my sketch is uploaded?

The C compilers provide two macros that resolve to string literals: __DATE__ gives the time the file was compiled, and __TIME__ gives the current time of day. They output e.g. "May 31 2017" and "21:1 …
Gerben's user avatar
  • 11.3k
1 vote
Accepted

Arduino LED lighting up when signal is reading low on multimeter

You left pin 3 floating. The multimeter will lower the voltage, resulting the the led lighting. Try enabling the pull-up resistor in pin 3 by adding pinMode(3, INPUT_PULLUP). PS you might want to add …
Gerben's user avatar
  • 11.3k
1 vote

Take an Arduino or Teensy prototype to Mass production - Loading software onto microcontroller

Arduino code is AVR code. There's no real difference. The only thing is that Arduino's tend to use bootloaders, which might cause a problem. But in your case I'd advice to not use a bootloader anyways …
Gerben's user avatar
  • 11.3k
2 votes

Help with coding Arduino Nano to run fan through slide switch at specific intervals

You can't run the fan directly from an Arduino pin. The fan will require to much current for that to work. Instead connect the fan, via a transistor/mosfet to the Arduino. Also add a (flyback-)diode …
Gerben's user avatar
  • 11.3k