How to send pwm data to arduino via bluetooth from my joystick app.

75 views
Skip to first unread message

waqar mehdi

unread,
Jun 26, 2017, 6:17:18 PM6/26/17
to MIT App Inventor Forum
how to send pwm data to arduino via bluetooth from my joystick app created using app inventor 2 ?


Untitled.jpg

Abraham Getzler

unread,
Jun 27, 2017, 11:03:30 AM6/27/17
to MIT App Inventor Forum
See the Arduino/Bluetooth section of this FAQ
for sample projects.

The MIT IOT site is new.

ABG

Evan Patton

unread,
Jun 27, 2017, 6:21:58 PM6/27/17
to MIT App Inventor Forum
If you are using the Arduino 101, we have an example sketch and extension to work with it, including driving the PWM pins. See this page of the site for the PWM extension documentation. If you have another Arduino version, please let us know because we are starting to plan for our next IOT iteration and want to increase our device coverage.

Evan

Juan Antonio

unread,
Jun 28, 2017, 12:15:45 PM6/28/17
to MIT App Inventor Forum
Hi,
send a number from Android to Arduino by BT, 25 ... 50... 75, then Arduino code by  

analogWrite(LED6, pwm); //  PWM

set PWM



- Regards.


Reply all
Reply to author
Forward
0 new messages