Show Posts
Pages: [1]
1  Community / Exhibition / Gallery / Re: Tag The Pole: device for pole painting on: November 23, 2012, 04:21:25 am
oh, it could be cool to draw cross hatch pattern!
i will implement it.
Thanks for comment.
2  Community / Exhibition / Gallery / Tag The Pole: device for pole painting on: November 22, 2012, 08:44:24 pm
Hello!

I would like to introduce my recent project.

*** FYI, the pole in the movie is my own property, not public one. ***



http://www.ampontang.com/?p=220

Statement:
EXPERIMENTS IN URBAN INTERVENTION
( devices of tactical hacking into our daily territory )

Description:
This device rotate around pole, and paint any color on it.

Materials:
- xbee
- arduino
- IR sensor
- geard motor & tire
- motor driver
- Servo motor
- free bearing
- 7.2V 1300mAh battery
- marker pen
and
- aluminium plate

Thanks forum!

A
3  Using Arduino / Networking, Protocols, and Devices / Re: [SOLVED] Cannot receive data from XBee+Arduino on: October 26, 2012, 11:28:04 pm
Oh I see!

- SoftwareSerial needs pin change interrupt http://www.arduino.cc/playground/Main/PinChangeInt
- I just happened to set D5 as SoftwareSerial TX,
- and Uno has D5 with PCINT (D5 and D8-D13).


I should study schematics :)

Thank you so much!
4  Using Arduino / Networking, Protocols, and Devices / Re: [SOLVED] Cannot receive data from XBee+Arduino on: October 26, 2012, 08:36:04 pm
Hmm
Seems D8, D9, D10 and D11 works for SoftwareSerial on Leonardo.
5  Using Arduino / Networking, Protocols, and Devices / [SOLVED] Re: Cannot receive data from XBee+Arduino on: October 26, 2012, 04:51:42 am
agggghh!

I changed Leonardo to Uno, I can receive data!
What's happened to Leonardo's SoftwareSerial...?

Thanks!
6  Using Arduino / Networking, Protocols, and Devices / Re: Cannot receive data from XBee+Arduino on: October 26, 2012, 04:08:20 am
Thank you for the response!

This "transmit" get data from Serial Monitor on Arduino IDE.
I manually type chars on Serial Monitor and push "send" button.
Then "transmit" send that data to destination XBee via 5 pin which is defined as SoftwareSerial TX.
So the Serial.print() here is just for debug purpose.

The "receive" is get data from another XBee via 4 pin which is defined as SoftwareSerial RX.
Then pint it on Serial Monitor and blink LED for debug.
(But I never get any data, so this is my topic...)

A
7  Using Arduino / Networking, Protocols, and Devices / [SOLVED] Cannot receive data from XBee+Arduino on: October 26, 2012, 03:16:41 am
Hello.

Could someone tell me how to receive data from XBee on Arduino?
I can send data but cannot receive, and totally get lost...

My enviroments.
- Arduino Leonardo
- XBee Series 2
- XBee Interface Board from digi http://strawberry-linux.com/images/xbee-wifi-kit_3.jpg
- XBee Explorer Regulated https://www.sparkfun.com/products/9132
- XBee Breakout Board http://www.switch-science.com/products/detail.php?product_id=100
And attach .pro files for both coodinator and router.

My sketch.
Code:
#include <SoftwareSerial.h>

uint8_t pinRx = 4, pinTx = 5;
SoftwareSerial mySerial(pinRx, pinTx);

long BaudRate = 9600;

int led = 12;

void setup()
{
  pinMode(led, OUTPUT);
  
  Serial.begin(BaudRate);
  mySerial.begin(BaudRate);  
  mySerial.listen();
}

void loop()
{
  // transmit
  if (Serial.available())
  {
    char gotChar = Serial.read();
    Serial.print(gotChar);
    mySerial.print(gotChar);
    digitalWrite(led, HIGH);
    delay(20);
    digitalWrite(led, LOW);
  }
  
  // receive
  if (mySerial.available())
  {
    char gotChar = mySerial.read();
    Serial.print(gotChar);
    digitalWrite(led, HIGH);
    delay(20);
    digitalWrite(led, LOW);    
  }
}


And my results.

Case. 1 : Both XBee can send and receive.
"X-CTU-Interface Board-XBee" -> "XBee-Interface Board-CoolTerm"
Success.
"X-CTU-Interface Board-XBee" <- "XBee-Interface Board-CoolTerm"
Success.

Case. 2 : XBee on Arduino side cannot receive message.
"X-CTU(or CoolTerm)-Interface Board-XBee" -> "XBee-Explorer Regulated-Arduino"
Fail. And no LED blink on 12 pin. But Explorer's RSSI light is ON and DOUT light is blinking.
"X-CTU(or CoolTerm)-Interface Board-XBee" <- "XBee-Explorer Regulated-Arduino"
Success.

Case. 3 : XBee on Arduino side cannot receive message.
"X-CTU(or CoolTerm)-Interface Board-XBee" -> "XBee-Breakout Board-Arduino"
Fail. And no LED blink on 12 pin.
"X-CTU(or CoolTerm)-Interface Board-XBee" <- "XBee-Breakout Board-Arduino"
Success.


Since I can send and receive with Interface Board, I think the XBee settings are OK.
RSSI right ON when I receive, so seems Arduino failed to retrive serial from XBee.
hmm :(

I appreciate any advice.
Thank you in advance!

A
Pages: [1]