Wireless RF APC220
the info below closest thing can find on how set up.
my question:
does used , how wire on arduino uno?
my question:
does used , how wire on arduino uno?
quote
on pc side.
on usb-ttl converter, cp2102 chips used. can download driver silicon laboratories, or here driver used. unzip , run exe file, follow step step processes install driver.
plug in usb adapter pc, windows recognize automatically.
now can attach apc220 module onto usb adapter. due difference in number of pins, please make sure attached correctly shown.
download , run rf-anet, detect apc220 module usb adapter on com port. click "read r". if show "read succeed!", means can used communication
on arduino side.
copy following code , upload arduino. please note serial communication used in both code upload , apc220 communication, must unplug apc220 during code upload
code:
int val = 0;
int ledpin = 13;
void setup()
{
serial.begin(9600);
}
void loop()
{
val = serial.read();
if (-1 != val) {
if ('a' == val || 'a' == val) {
serial.println("hello arduino!");
}else if ('b' == val || 'b' == val) {
digitalwrite(ledpin, high);
delay(500);
digitalwrite(ledpin, low);
}
}
}
for same reason of serial communication used apc220, cannot connect arduino pc usb power supply reason, external power needed test.
effective distance apc220 1000m, can put arduino apc200 module away external power supplied
on pc side, apc220 communicating windows on serial com port, can use arduino's software serial platform. not talking arduino on software time, change of serial port needed. in "tools" -> "serial ports", select com port used apc220(the 1 usb adapter connected pc). click "serial monitor", type "a" , send, signal sent pc arduino through apc220 modules.
when arduino receive "a" signal, return "hello arduino!" signal , shown on serial monitor. when "b" typed, led on pin 13 of arduino lighted 0.5 second.
i have been using protocol apc220, time. work great on distance of 80 feet through 2 walls.
jim
jim
Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Wireless RF APC220
arduino
Comments
Post a Comment