Search Results
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 |
Infrared (IR) is a form of light which is not visible to the human eye. It can be used in a variety of applications, including remote controls, data transfer, reflectance sensing, and proximity/motion detection.
2
votes
Accepted
invalid conversion from 'uint16_t* error when creating an array of uint16_t items
You have two options.
You can make an array of arrays like this:
const uint16_t sources[3][RAW_DATA_LEN] = {
{ 8546, 4310, 558, ... }, // CD
{ 8550, 4310, 526, ... }, // AUX
{ 8550, …
1
vote
Accepted
what is the difference between array of uint16_t data versus an array of uint16_t variables?
Serial.println();
}
};
and used it in the following test program:
// Comment this line out to use an array of arrays instead:
#define ARRAY_OF_POINTERS
// ====REMOTE CODES====
//define the IR …
1
vote
PROGMEM for IR command storage
If your IR library does not support sending signals stored in PROGMEM,
then you will have to provide the data in RAM. … I suggest you keep all the IR signal data in PROGMEM while not sending
them. Whenever you want to send a signal, you copy it to a RAM-based
buffer and give the address of that buffer to the library. …
2
votes
Accepted
Using Serial.write() to send a uint32_t send one byte x4 or send 4 bytes x1
Unless you are using very high baud rates, (at least higher than
115.2 kb/s), it should make no difference.
The reason is that either version of your code should run faster than
the UART. Serial.writ …
5
votes
How to run 50 IR LEDs off an Arduino UNO?
You should put a current-limiting resistor in series with each LED.
You could then try to drive all of those LEDs from a beefy transistor, like
a power MOSFET or a Darlington. Alternatively, you can u …
3
votes
Accepted
Whats wrong with my code?
Avoid "magic numbers" within your code (e.g. the IR codes), and use
properly named constants instead.
before is hard to understand, give it a name that makes sense. I
suggest leds_are_on. … With these suggestions, I would start the program like this:
#include <IRremote.h>
// Pinout.
const int RECV_PIN = 12; // data out of IR receiver
const int RED_PIN = 11;
const int GREEN_PIN = 10 …
6
votes
Locally declared variable takes up global variable space in dynamic memory/SRAM
Isn't the space taken up by the local variable supposed to be freed up
from the SRAM once the functions runs because I have declared the
variable locally?
This is correct. The local arrays yo …