You are not logged in.

#1 2015-10-16 19:00:18

Tueddy
Member
Registered: 2015-09-25
Posts: 8

testing firmware on blank Arduino Micro

Hello Plen2 team,

first to say: Plen2 is the most beautiful mini robot i've seen, my son will love him. Domo arigato, Mr. Roboto!

I've uploaded the firmware to a naked Arduino Micro to make some tests.
Firmware is well structured using classes, separate units and easy to understand namespaces.
Well done!

1.) Plen2 doesn't say: "Hello my name is Plen2, my system is up and running firmware 1.xx, let me walk!" This would be very helpful to test

2.) <vi command does nothing?

3.) Enabling DEBUG: "xxx in fuction" should it be "xxx running in funCtion"?

4.) It's unclear how USB-/BLE serial work together. When i connect a BLE serial shield i can communicate via both connections?

Thanks so far
Best regards
Dirk

Offline

#2 2015-10-17 13:00:57

Guvalif
Moderator
From: Osaka / Japan
Registered: 2015-08-31
Posts: 135
Website

Re: testing firmware on blank Arduino Micro

Hi, Tueddy.

Thank you for your cheering! We work for people get more fun through PLEN, always have, always will :)

1.) OK, I'll think about this.

2.) No, "<VI" command has implemented since firmware version 1.1.0. For example, I have installed firmware version 1.2.1 to my PLEN2, and then send the command, I can get json like below.

```json
{
    "device": "PLEN2",
    "codename": "Cytisus",
    "version": "1.2.1"
}
```
I thought that you are not using PLEN2's baud-rate. PLEN2 and other component to communicate with baud-rate of 2,000,000.
(It's defined here: https://github.com/plenproject/plen__fi … .h#L37-L41)

3.) Oh... I had not noticed the typo X(  This bug has fixed currently, please check below.
https://github.com/plenproject/plen__fi … 386213f120

4.) That's right you intended.

Offline

#3 2015-10-17 21:01:12

Tueddy
Member
Registered: 2015-09-25
Posts: 8

Re: testing firmware on blank Arduino Micro

Thanks Guvalif for explaination!

Typo is fixed, perfect!
My baudrate seems to be wrong, but in Arduino IDE i cannot set to 2,000,000? Max value in serial monitor is 250,000 baud.
Is there a line like Serial.begin(9600);? I did not found it..

Dirk

Offline

#4 2015-10-17 23:40:11

Guvalif
Moderator
From: Osaka / Japan
Registered: 2015-08-31
Posts: 135
Website

Re: testing firmware on blank Arduino Micro

Hi,

> ... but in Arduino IDE i cannot set to 2,000,000?
Yes, we use other terminal emulator to communicate with PLEN2. (In japan, the most popular one is Tera Term.)
If you want to use other baud-rate, please change their definition that described before, or write "Serial.begin(xxx);" directly in the setup().
(By the way, the firmware calls Serial.begin() at here.)

If you are interested, let get the additional information why we are using baud-rate 2,000,000.
(Reference: http://wormfood.net/avrbaudcalc.php?pos … detables=1)

Offline

#5 2015-10-20 10:53:13

Tueddy
Member
Registered: 2015-09-25
Posts: 8

Re: testing firmware on blank Arduino Micro

Hi Guvalif,

thanks now i see! <vi works and i can upload motion with latest motion installer for win.
I'll try a bluetooth HM-11 BLE 4.0 module because BLE113 visual is not available in germany.
The HM-11 is cheap and seems to work with iOS. I'll report back here if it works.

Best regards
Dirk

Offline

Board footer

Powered by FluxBB