Pages: [1]   Go Down
Author Topic: How to reconfigure IR led pin?  (Read 383 times)
0 Members and 1 Guest are viewing this topic.
India
Offline Offline
Newbie
*
Karma: 0
Posts: 21
Induino X is awesome!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello guys.I'm having InduinoX clone of arduino.It has an inbuilt IR led to pin D14.But all examples using IR send are configured to pin 3.How do I reconfigure the pins?
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 227
Posts: 6637
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you are looking to emulate an IR remote control, you will almost certainly need to drive the IR LED at 38KHz. The usual way to do this is to set up timer 1 or timer2 to do this, which limits you to using pin 3 or pin 9. To use pin 14, you would have to write code to toggle that pin every 13us instead.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

India
Offline Offline
Newbie
*
Karma: 0
Posts: 21
Induino X is awesome!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Would you plz explain bcz i'm a learner.
Logged

Pages: [1]   Go Up
Jump to: