SparkFun Forums 

Where electronics enthusiasts find answers.

For the discussion of Arduino related topics.
By amritss47
#192545
Hi lads,

I have made a android app using Ionic framework that communicates to arduino via bluetooth (HC06). Right now, I can simply turn off/on an already programmed port through bluetooth. However this is not really a very useful for real life applications. I would like to increase or decrease the number of pins used on arduino and be able to control them individually, which will allow me to add/remove component like lights, relays etc.. at any time without having to code my app and arduino (specially arduino) again and again.

My question is how can I implement something like johnnyfivejs in Ionic App which uses HTML and Angularjs, or how can I activate or deactivate (setting up pins as input or output mode) an arduino PIN through my app by simply sending some string commands?

I hope my query is clear.

I would deeply appreciate any help.

Thank you lads.