Arduino sketch status

6 views
Skip to first unread message

Drew Fustini

unread,
Jun 8, 2011, 11:02:07 PM6/8/11
to PS:One Great Global Hackerspace Challenge Team
I've flashed the arduino code from May 2nd that is in github:

https://github.com/pdp7/ps1biosensor/blob/master/ps1biosensor_arduino/ps1biosensor_arduino.pde

onto the arduino in the biosensor enclosure. However, I couldn't get
Electric Guru to read the data in my Win VM or in Ish's app.

Thanks,
Drew

Drew Fustini

unread,
Jun 8, 2011, 11:03:00 PM6/8/11
to PS:One Great Global Hackerspace Challenge Team
It would be good to test with Shawn or Dan where we know Guru or Brain
Bay is working ok. It could be a problem with my VM.

Thanks,
Drew

On Jun 8, 10:02 pm, Drew Fustini <pdp7p...@gmail.com> wrote:
> I've flashed the arduino code from May 2nd that is in github:
>
> https://github.com/pdp7/ps1biosensor/blob/master/ps1biosensor_arduino...

Shawn Blaszak

unread,
Jun 9, 2011, 1:38:18 AM6/9/11
to pumping-stat...@googlegroups.com
Hey,

Sorry I was a no-show tonight, I got stuck at work late.  It could be a problem with your VM, but the original version of your LCD sketch wouldn't work for me either.

-Shawn

Dan Dumi

unread,
Jun 9, 2011, 9:00:40 AM6/9/11
to pumping-stat...@googlegroups.com
We also need to check the BlueSmirf speed as I understand it defaults to 115kbps, so may be a speed missmatch between the sketch, BTooth and PC program.

Cheers,
Dan



From: Shawn Blaszak <sbla...@gmail.com>
Sent: Thursday, June 09, 2011 12:38 AM
To: pumping-stat...@googlegroups.com
Subject: Re: [PS1-GGHC] Re: Arduino sketch status

Shawn Blaszak

unread,
Jun 9, 2011, 10:01:07 AM6/9/11
to pumping-stat...@googlegroups.com
I know that was one of the things I checked when I tried connecting to the sketch at the first meeting after you guys got back from Maker Faire.  The baud rates seemed to be set correctly.
 
-Shawn

Drew Fustini

unread,
Jun 9, 2011, 1:14:33 PM6/9/11
to PS:One Great Global Hackerspace Challenge Team
I went back to May 2nd sketch which is on Github as I believe that was
working ok in BrainBay & Guru. No LCD code & it uses the original I2C
temp sensor. The most likely issue is that I didn't have the virtual
serial port configured correctly in my Windows VM.

Ish also ran the Android app on the tablet in debug mode. It paired
ok but when inspecting the receive buffer in the debugger, the OpenEEG
packet header or anything expected bytes could be seen. Ish recalled
seeing in the debugger valid packet data received by the Android app.
But that was before Maker Faire and it is uncertain exactly what
sketch was on there.

Anyways, verifying the current May 2nd sketch on the Biosensor Array
Arduino in BrainBay or Guru on a real Windows is probably the next
step.

Cheers,
Drew

Drew Fustini

unread,
Jun 9, 2011, 1:20:48 PM6/9/11
to PS:One Great Global Hackerspace Challenge Team
That is good point about the baud rate.

For USB to PC, it should have been ok at the sketch on GitHub (May
2nd) is using 57,600. I believe this is what Guru expects.

However, for Bluetooth, maybe that is a problem. As Dan commented,
the BlueSMiRF is 115,200 by default, although it can be changed. I
would think it would be a problem if Arduino sketch does
Serial.begin(57600) and the BlueSMiRF is configured for 115,200.

The other detail I was confused about was how the Android knows what
baud right to use. For example, on Ubuntu, one paired on the lower
level Bluetooth layer, a virtual serial port can be established but
the basic serial info needs to be know like the baud rate. That
virtual serial port is then exposed as a device like /dev/rfcomm1 that
can be written like any serial port. I know Android has a separate
Java API for Bluetooth and doesn't use that simple device file
abstraction so maybe that doesn't matter.

Cheers,
Drew


On Jun 9, 9:01 am, Shawn Blaszak <sblas...@gmail.com> wrote:
> I know that was one of the things I checked when I tried connecting to the
> sketch at the first meeting after you guys got back from Maker Faire.  The
> baud rates seemed to be set correctly.
>
> -Shawn
>
>
>
>
>
>
>
> On Thu, Jun 9, 2011 at 8:00 AM, Dan Dumi <dumit...@gmail.com> wrote:
> > We also need to check the BlueSmirf speed as I understand it defaults to
> > 115kbps, so may be a speed missmatch between the sketch, BTooth and PC
> > program.
>
> > Cheers,
> > Dan
>
> > ------------------------------
> > From: Shawn Blaszak <sblas...@gmail.com>
> > Sent: Thursday, June 09, 2011 12:38 AM
> > To: pumping-stat...@googlegroups.com
> > Subject: Re: [PS1-GGHC] Re: Arduino sketch status
>
> > Hey,
>
> > Sorry I was a no-show tonight, I got stuck at work late.  It could be a
> > problem with your VM, but the original version of your LCD sketch wouldn't
> > work for me either.
>
> > -Shawn
>

Drew Fustini

unread,
Jun 11, 2011, 4:50:15 PM6/11/11
to PS:One Great Global Hackerspace Challenge Team
FYI - I picked up the Nokia LCD shield last night and plan to get the
OpenEEG packet transmission & LCD graphing working ok on another one
of my Arduinos.

I'll just fake the analog input and make sure it appears on the LCD
and in one of the OpenEEG programs. I'll commit to my github fork
once that is done. Hopefully can then do a full integration test at
PS1 on Tue or Wed.

Also, Dan let me know that he picked up the rest of the array this
afternoon to work on it at home tonight.

Cheers,
Drew
Reply all
Reply to author
Forward
0 new messages