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 31105

A standard Arduino function for measuring the voltage on an analog pin via ADC.

1 vote

How to read analog pins from a second Arduino

Yes that is possible, you can even use as many Arduino's as you want and send the information to one 'master' Arduino to process the data. What you need is a way to communicate between them. Dependin …
Michel Keijzers's user avatar
1 vote

analog read only once a time

Store the current read value AND the previous value and check if a border has been crossed. E.g. if Previous value < 500 AND current value >= 500 Going from 0 to 1 -> return/send 1 else if Previ …
Michel Keijzers's user avatar
0 votes

Using case statement with IR emitter reciever

ir1, s1); break; case 1: process(led2, ir2, s2); break; } } void process(int led, int sw, int ir) { digitalWrite(led, HIGH); digitalWrite(ir, HIGH); delay(50); while (analogRead … ; pinMode(part.sw , INPUT); } } void loop() { process(_parts[random(2)]); } void process(Part& part) { digitalWrite(part.led, HIGH); digitalWrite(part.ir, HIGH); delay(50); while (analogRead
Michel Keijzers's user avatar
2 votes
Accepted

Data type explanation regarding analogRead of a photoresistor

See: analogRead. It shows the return value is a 10 bit number, which means a value of 0 to 1023. If you use uint8_t, which is an 8 bit value, it only can store values from 0-255. … It has the 10 bits you get from the analogRead function. …
Michel Keijzers's user avatar
1 vote
Accepted

Why do you need to shift bits when reading from an analog sensor?

You read bytes in the order: Most significant byte (let's call this msb) Least significant byte (let's call this lsb) The formula to get to real value is msb * 256 + lsb 256 because this is th …
Michel Keijzers's user avatar
1 vote

Decode VGA port by Arduino

Calculation: 320 x 240 resolution (assuming 8 bits for 256 colors) is 76,800 bytes Assuming a frame rate of 50, that is 50 * 76,800 = 3,840,000 bytes/s The most Arduino's are 16 MHz so assuming qui …
Michel Keijzers's user avatar
2 votes
Accepted

Why do all analog pins measure the same value?

If you want to measure a pin (i.e. defined as input pin, either digital or analog), you have to use a pull up or pull down resistor (either internal or external depending on what the MCU GPIOs have). …
Michel Keijzers's user avatar
4 votes
Accepted

What is the definition of these arduino commands, and how do they affect the circuit?

These are a lot of different questions. However, you can find most of the Arduino related answers in the official reference: Arduino reference Guide Some other answers: how to declare variables: …
Michel Keijzers's user avatar
2 votes

ignoring potentiometer value variations

There are many ways to remove noise, below are some ways: Only change the value when it differs enough. Assume the range is 0-1023. Than only change the value if the input value differs more than a …
Michel Keijzers's user avatar