Quantcast
Viewing latest article 3
Browse Latest Browse All 142

Reply To: Switching between modes in a program using bluetooth

Hi LED Bloke Image may be NSFW.
Clik here to view.

Apologies for the late response …

The idea to use a relay isn’t a bad one. But I’d imagine a second Arduino would control the relay then.
I have not yet played with Bluetooth so I cannot give much advise on that topic.
Well, except that BT has a limited rang. Depending on the BT implementation version

  • Class 1 up to 100 meters (or 300 feet) – As far as I know, not very common.
  • Class 2 up to 10 meters (or 30 feet) – the most commonly used BT, often for headsets.
  • Class 3 less than than 10 meters (or 30 feet) – commonly used for keyboards and mice.
On that note: I’ve seen others play with BT for the LED effect, you may want to checkout their code, for example this post https://www.tweaking4all.com/forums/topic/arduino-all-effects-with-ir-support/.
I think the main challenge will be the “interrupt” of running code (for example an effect that is currently running). A BT module will (probably) not be able to trigger an interrupt, so we’d need some kind of multitasking/task switching to “read” what the BT is receiving.
I did order a BT module the other day, and would like to tinker with this as well, so hopefully I’ll be able to post working code in the next few weeks.

Viewing latest article 3
Browse Latest Browse All 142

Trending Articles