Interfacing Arduino UNO R3 to BV4639 March 03, 2013 11:20PM |
Registered: 10 years ago Posts: 4 |
Re: Interfacing Arduino UNO R3 to BV4639 March 04, 2013 09:34AM |
Admin Registered: 11 years ago Posts: 351 |
Re: Interfacing Arduino UNO R3 to BV4639 March 05, 2013 09:55PM |
Registered: 10 years ago Posts: 4 |
Re: Interfacing Arduino UNO R3 to BV4639 March 06, 2013 07:49AM |
Admin Registered: 11 years ago Posts: 351 |
Re: Interfacing Arduino UNO R3 to BV4639 March 06, 2013 09:15AM |
Registered: 10 years ago Posts: 4 |
Re: Interfacing Arduino UNO R3 to BV4639 March 06, 2013 07:08PM |
Registered: 10 years ago Posts: 4 |
#include <BSerial.h> #define rxPin 5 #define txPin 4 BSerial bs(rxPin, txPin); long brate; void setup() { Serial.begin(9600); bs.flush(); brate=9600; bs.baud(brate); } void loop() { int i=0; char ch; ch=0x00; Serial.print("Connecting..."); while (ch !=0x2a) { bs.putch('\r'); delay(50); if(bs.buffer()!=0) { ch=bs.getch(); Serial.print(ch); bs.flush(); } } Serial.print(" Done\n"); i=0; while(1) { bs.puts("bdJKL\r"); if (bs.buffer() !=0) { Serial.print((int)bs.getch()); i+=1; if (i==40) { Serial.print("\n"); i=0; } } } }And this is the output of the program execution
Connecting...* Done 0000000000000000000000000000000200000000 0000000000000000000000001000000000000000 0000000000000000010000000000000000000000 0000000000200000000000000000000000000000 0002000000000000000000000000000000001000 0000000000000000000000000000010000000000 0000000000000000000000200000000000000000 0000000000000002000000000000000000000000 0000000010000000000000000000000000000000 0100000000000000000000000000000000200000 0000000000000000000000000002000000000000 0000000000000000000010000000000000000000 0000000000000100000000000000000000000000 0000002000000000000000000000000000000002 0000000000000000000000000000000010000000 0000000000000000000000000100000000000000 0000000000000000002000000000000000000000 0000000000120000000000000000000000000000 0000100000000000000000000000000000000100 0000000000000000000000000000002000000000As you can see the chip answered with * and the i begin sending the command "bdJKL\r" since b is the default chip address.
Re: Interfacing Arduino UNO R3 to BV4639 March 07, 2013 07:53PM |
Admin Registered: 11 years ago Posts: 351 |
#include <BSerial.h> #include <sv3.h> #include <bv4639.h> #define rxPin 5 #define txPin 4 BV4639 disp(rxPin, txPin, 9600, 'b', 6); void setup() { disp.init(); } void loop() { char buf[40]; int j; disp.cls(); disp.print("Hello "); disp.print(22); disp.print(77," 0x%x"); j=disp.id(); disp.rowcol(1,0); disp.print(j); disp.firmware(buf); disp.print(" Version:"); disp.print(buf); while(1); // stop }
Re: Interfacing Arduino UNO R3 to BV4639 July 26, 2013 08:31PM |
Registered: 9 years ago Posts: 2 |
Re: Interfacing Arduino UNO R3 to BV4639 July 27, 2013 08:45AM |
Admin Registered: 11 years ago Posts: 351 |
Re: Interfacing Arduino UNO R3 to BV4639 December 01, 2013 12:15PM |
Registered: 9 years ago Posts: 2 |