Hi Every body I'm beginner for Arduino programming
I am trying to control Two things that is one fan and one light
with Bluetooth application
I also wanna to control the speed of fan and light intensity
I have made the android app that sends signal to the Arduino through the Bluetooth
Signal description :
String L1 for Light ON
String L0 for Light OFF
String F1 for Fan ON
String F0 for Fan OFF
String 1 with PWM_value is for Controlling Light Intensity
String 2 with PWM_value is for controlling Fan Speed
if anybody can give me a syntax for Arduino UNO R3
to read this all inputs and perform above operations
please suggest me as early as possible
cause, its all about my final year project
and last date is 15 march 2019
I'm creating app with MIT App Inventor
if anybody suggest me to make another app functions it will do
Have a look at the examples in Serial Input Basics - simple reliable ways to receive data. There is also a parse example to illustrate how to extract numbers from the received text.
The technique in the 3rd example will be the most reliable. It is what I use for Arduino to Arduino and Arduino to PC communication.
You can send data in a compatible format with code like this (or the equivalent in any other programming language)
It will be easier for your Arduino code if you use single character commands - for example 'L' for light ON and 'l' (lowercase L) for off and 'F' and 'f' to control the fan.
please suggest me as early as possible
cause, its all about my final year project
Why should anyone here help you cheat? What you are needing to do is so trivial that I'd assign it a level of effort of 1, on a scale of 1 to 10. It is not anywhere near what I would expect the level of complexity of a final year project to be, unless you are trying to graduate from elementary school.