Blocos on a Mac

58 views
Skip to first unread message

brett

unread,
Nov 12, 2009, 9:28:16 PM11/12/09
to br-...@googlegroups.com
Is it possible to install Blocos on a Macintosh? I was talking to
someone at my son's school about starting an afterschool program
learning to program robots using the Blocos/Babuino platform, but their
computer lab is Mac based.



Brett

Lucas Tanure

unread,
Nov 24, 2009, 1:11:47 PM11/24/09
to br-...@googlegroups.com
Works! \o/ \o/ \o/ \o/
Well, I have some problems, but I don't wast more than a few minutes to get runnig.
My advice to you is that you try to run and I post the errors found. Please, always use the Macports.


Lucas A. Tanure Alves
Centro de Tecnologia da Informação Renato Archer
Equipe de Desenvolvimento Gogo Board Brasil
+55 (19) 88176559

brett

unread,
Jan 13, 2010, 10:43:54 AM1/13/10
to br-...@googlegroups.com
Hi Lucas!

I installed the supporting software for Blocos on a Macbook, but it
still isn't running. I get the following message:

IT482070-2:blocos teacher$ python Blocos.py
Traceback (most recent call last):
File "Blocos.py", line 37, in <module>
from gtk import glade
ImportError: No module named gtk

I had installed GTK2, so I went back and installed GTK1, but I get the
same message. Any ideas what I should try next? Any help would be
greatly appreciated. Below is a listing of the software installed with
Macports. I'm trying to get the software installed for a class that I'm
going to start teaching to gradeschool children using Blocos to teach
them how to program a robot.


Thanks!

Brett


IT482070-2:blocos teacher$ port installed
The following ports are currently installed:
atk @1.26.0_1 (active)
atlas @3.8.3_1 (active)
autoconf @2.65_0 (active)
automake @1.11.1_0 (active)
bzip2 @1.0.5_3+darwin (active)
cairo @1.8.8_0+macosx (active)
db46 @4.6.21_6 (active)
docbook-xml @5.0_0 (active)
docbook-xml-4.1.2 @4.1.2_1 (active)
docbook-xml-4.2 @4.2_0 (active)
docbook-xml-4.3 @4.3_0 (active)
docbook-xml-4.4 @4.4_0 (active)
docbook-xml-4.5 @4.5_0 (active)
docbook-xml-5.0 @5.0_0 (active)
docbook-xsl @1.75.2_0 (active)
expat @2.0.1_0 (active)
fftw-3 @3.2.2_0+i386 (active)
fontconfig @2.8.0_0+macosx (active)
freetype @2.3.11_1+macosx (active)
gcc43 @4.3.4_0 (active)
gdbm @1.8.3_2 (active)
getopt @1.1.4_1 (active)
gettext @0.17_4 (active)
glib2 @2.22.3_0+darwin (active)
gmp @4.3.1_1 (active)
gnome-common @2.26.0_0 (active)
gnome-doc-utils @0.16.1_1 (active)
gperf @3.0.4_0 (active)
groff @1.20.1_1 (active)
gtk-doc @1.13_0 (active)
gtk2 @2.18.6_0+x11 (active)
gzip @1.3.13_0 (active)
help2man @1.37.1_1 (active)
intltool @0.40.6_0 (active)
iso-codes @3.12.1_0 (active)
jasper @1.900.1_6 (active)
jpeg @7_0 (active)
kiwi @1.9.20_0 (active)
libffi @3.0.8_1 (active)
libglade2 @2.6.4_1 (active)
libiconv @1.13_0 (active)
libpixman @0.16.4_0 (active)
libpng @1.2.42_0 (active)
libtool @2.2.6b_0 (active)
libxml2 @2.7.6_0 (active)
libxslt @1.1.26_0 (active)
m4 @1.4.13_0 (active)
mpfr @2.4.2-p1_0 (active)
ncurses @5.7_0 (active)
ncursesw @5.7_0 (active)
openssl @0.9.8l_0+darwin (active)
p5-getopt-long @2.38_0 (active)
p5-locale-gettext @1.05_0 (active)
p5-pathtools @3.31_0 (active)
p5-scalar-list-utils @1.22_0 (active)
p5-xml-parser @2.36_0 (active)
pango @1.24.5_0+macosx (active)
perl5 @5.8.9_0 (active)
perl5.8 @5.8.9_3 (active)
pkgconfig @0.23_1 (active)
py25-cairo @1.8.2_0+darwin_9 (active)
py25-gobject @2.18.0_0+darwin_9 (active)
py25-gtk @2.16.0_0+darwin_9 (active)
py25-nose @0.11.1_0 (active)
py25-numeric @24.2_1+macosx (active)
py25-numpy @1.4.0_0 (active)
py25-setuptools @0.6c11_0 (active)
py26-cairo @1.8.8_0+darwin_9 (active)
py26-gobject @2.18.0_0 (active)
py26-gtk @2.16.0_0+darwin_9 (active)
py26-libxml2 @2.6.21_0 (active)
py26-nose @0.11.1_0 (active)
py26-numpy @1.4.0_0 (active)
py26-serial @2.4_0 (active)
py26-setuptools @0.6c11_0 (active)
python25 @2.5.4_9+darwin+darwin_9+macosx (active)
python26 @2.6.4_0+darwin (active)
rarian @0.8.1_0 (active)
readline @6.1.000_1+darwin (active)
shared-mime-info @0.70_0 (active)
sqlite3 @3.6.22_0 (active)
tcl @8.5.8_0+darwin (active)
tiff @3.9.2_2+macosx (active)
tk @8.5.8_0+darwin (active)
Xft2 @2.1.14_0 (active)
xmlcatmgr @2.2_1 (active)
xorg-bigreqsproto @1.1.0_0 (active)
xorg-compositeproto @0.4.1_0 (active)
xorg-damageproto @1.2.0_0 (active)
xorg-fixesproto @4.1.1_0 (active)
xorg-inputproto @2.0_0 (active)
xorg-kbproto @1.0.4_0 (active)
xorg-libX11 @1.3.2_0 (active)
xorg-libXau @1.0.5_0 (active)
xorg-libXcomposite @0.4.1_0 (active)
xorg-libXcursor @1.1.10_0 (active)
xorg-libXdamage @1.1.2_0 (active)
xorg-libXdmcp @1.0.3_0 (active)
xorg-libXext @1.1.1_0 (active)
xorg-libXfixes @4.0.4_0 (active)
xorg-libXi @1.3_0 (active)
xorg-libXinerama @1.1_0 (active)
xorg-libXrandr @1.3.0_1 (active)
xorg-libXScrnSaver @1.2.0_0 (active)
xorg-randrproto @1.3.1_0 (active)
xorg-renderproto @0.11_0 (active)
xorg-scrnsaverproto @1.2.0_0 (active)
xorg-util-macros @1.4.1_0 (active)
xorg-xcmiscproto @1.2.0_0 (active)
xorg-xextproto @7.1.1_0 (active)
xorg-xf86bigfontproto @1.2.0_0 (active)
xorg-xineramaproto @1.2_0 (active)
xorg-xproto @7.0.16_0 (active)
xorg-xtrans @1.2.5_0 (active)
xrender @0.9.5_0 (active)
zlib @1.2.3_3 (active)
IT482070-2:blocos teacher$

Lucas Tanure

unread,
Jan 13, 2010, 1:31:35 PM1/13/10
to br-...@googlegroups.com
Hi Brett,
Just for a quick answer, please install  py26-gtk and py26-pyserial at Macports.

Regards!!


Lucas A. Tanure Alves
Development Team Br-Gogo
Skype : lucas.tanure
+55 (19) 88176559

Lucas Tanure

unread,
Jan 13, 2010, 1:38:49 PM1/13/10
to br-...@googlegroups.com
Ops! My mistake...
Brett, run like python2.6 Blocos or remove de gtk 2 and 1 that you have installed and leave just the py26-gtk.


Lucas A. Tanure Alves
Development Team Br-Gogo
Skype : lucas.tanure
+55 (19) 88176559


brett

unread,
Jan 13, 2010, 8:06:05 PM1/13/10
to br-...@googlegroups.com
Success! The python2.6 Blocos command did the trick. However, Blocos
still cannot find the robot plugged into the USB port. Is this a matter
of adding in the USB port designation used on the Mac similar to what
you did for Ubuntu linux(/dev/ttyUSB0)? I'm not a Mac person, so I
don't know what the USB port naming convention is for OS X.


Thanks for the help!

Brett

Lucas Tanure

unread,
Jan 13, 2010, 9:30:42 PM1/13/10
to br-...@googlegroups.com
Hi,
Just for a quick fix. Send to me this command with the robot pluged. This will create a file into your home with the name File_to_send_Lucas:

ls -la /dev | grep tty > ~/File_to_send_Lucas


Lucas A. Tanure Alves

Equipe de Desenvolvimento Gogo Board Brasil
Skype : lucas.tanure
+55 (19) 88176559


brett

unread,
Jan 13, 2010, 11:08:27 PM1/13/10
to br-...@googlegroups.com
Here's the file. I'm logged on as "teacher" and I'm using an FTDI
USB-RS232 cable.

I'm in the tedious process of installing to 5 additional computers.
When you list GTK as a needed library, which version should I be
downloading?

Thanks again for all of your help!

Brett

File_to_send_Lucas

Lucas Tanure

unread,
Jan 14, 2010, 3:50:05 AM1/14/10
to br-...@googlegroups.com
Brett,

At Mac you install the py26-gtk.
For windows you just install https://sourceforge.net/projects/br-gogo/files/Br_Gogo_python.exe/download

And linux you install the python-gtk2

To connect the robot login as root and do :
ln -s /dev/
ttys000 /de/ttyACM0

If this don't change the permissions, as root :
chmod 777 /dev/
ttys000

Lucas A. Tanure Alves
Equipe de Desenvolvimento Gogo Board Brasil
Skype : lucas.tanure
+55 (19) 88176559


brett

unread,
Jan 14, 2010, 5:31:37 AM1/14/10
to br-...@googlegroups.com
I monkeyed around with links and permissions for a while with no luck.
Then I realized that the ttys000 was my terminal window; by opening up
two more terminal windows, I can spawn ttys001 & ttys002 in /dev.

Do you have any ideas on how to determine which device file belongs to
the usb port?


I've got to go get some sleep...I'll check back in about 4 hours.

Thanks for your help!

Brett

brett

unread,
Jan 14, 2010, 12:15:06 PM1/14/10
to br-...@googlegroups.com
I'm thinking that the problem is a driver issue. The cable I'm using is
an FTDI chip based usb-rs232 converter. The computers are back at
school for the day, but I'll research drivers & try again tonight. I
might just try installing the Arduino programming environment; since it
uses an FTDI chip for serial communications, it should install the
necessary driver(s) automatically. I'll let you know what I find out.


Brett

Lucas Tanure

unread,
Jan 14, 2010, 12:48:01 PM1/14/10
to br-...@googlegroups.com
Brett,
When you connect a FTDI chip, the system automatically creates a port /dev/ttyUSB* on your computer. And you use just simple cable usb. Can you send a photo of what are you using?
A photo of the board and the cable.

Bye


Lucas A. Tanure Alves
Equipe de Desenvolvimento Gogo Board Brasil
Skype : lucas.tanure
+55 (19) 88176559


brett

unread,
Jan 14, 2010, 1:03:57 PM1/14/10
to br-...@googlegroups.com
Good news/Bad news.

I remembered that I had installed the Arduino programming environment on
my wife's old mac ibook, so I plugged the cable into it. Indeed, two
device files popped up into /dev:
cu.usbserial-FTDOML7H
tty.usbserial-FTDOML7H

Cool! That gives me something to work with. But then I thought, "What
would happen if I plugged in a different FTDI cable?" And so I did.
Again, two device files showed up in /dev:
cu.usbserial-FTERZVKB
tty.usbserial-FTERZVKB

Dang! Each cable seems to create a unique device file name probably
based upon it's usb serial number. Not a big deal if you are
working(playing) at home and are using 1 computer with 1 cable. But it
makes it much more awkward if you are teaching a weekly class with many
kids, several macbooks, and several cables.

--Is there any way to use a wildcard character in a link?(ie
tty.usbserial-*)

--What is the difference between the cu. and the tty. device files?
Which do I need to link to ttyACM0?

Brett

brett

unread,
Jan 14, 2010, 1:26:45 PM1/14/10
to br-...@googlegroups.com
It creates a port /dev/ttyUSB* with linux, but creates something rather
different on OS X; see my previous post. I use FTDI cables because it
saves me money by not having to put an FTDI chip on every single board I
own; plus I don't have to deal with surface mount chips(I don't think
that FTDI chips are available in through-hole).

Brett

brett

unread,
Jan 14, 2010, 10:58:33 PM1/14/10
to br-...@googlegroups.com
Taught my first class on Blocos today to ten students ranging from 4th
through 8th grade. Things went well and the kids had fun! I'm looking
forward to teaching it for the next few weeks. Thank you all for
creating such a nice platform for young programmers.

My problems with communicating through the usb port was a driver issue.
I went to the FTDI website, but their instructions were a bit involved.
With only 30 minutes left before class, I downloaded the Arduino install
package for OS X, and it included the FTDI drivers with an automatic
install...just a few clicks and a reboot and I was in business(I didn't
need to install Arduino, only the FTDI driver that was bundled with it).
I then created the symbolic link suggested by Lucas and I was in
business!(after doing the same to each of the 6 Macbooks) Since each
cable is identified by the operating system by a unique identifier, I
had to label each cable with the computer number so that they can be
paired up each time. If we get a lot more Babuino users of Blocos, it
might be worth including support for /dev/tty.usbserial-FT* for OS X
users with FTDI chips or cables.


Thanks for all of your help Lucas!

Brett

Lucas Tanure

unread,
Jan 15, 2010, 6:11:37 AM1/15/10
to br-...@googlegroups.com
Brett,
Thanks a Lot.

Can you tell me all the problems that you have? Like which name on /dev appears when you plug your cable? It's just /dev/tty.usbserial-FT*, I have tested on Mac once, and appears something like /dev/tty.USB0 or  /dev/tty.USB1 ...
So, you use a ardunio serial board? I'ts right? You want a Br-Gogo ? It's usb 2.0 and ready to use. You can made at home the Br-Gogo, it's really easy to do.

Thanks!

Lucas A. Tanure Alves
Equipe de Desenvolvimento Gogo Board Brasil
Skype : lucas.tanure
+55 (19) 88176559


brett

unread,
Jan 15, 2010, 3:03:07 PM1/15/10
to br-...@googlegroups.com
>You want a Br-Gogo ? It's usb 2.0 and ready to use.
Everything I've seen on the Br-Gogo website shows that the Br-Gogo board
is RS232 based. If you are using the usb port, how do you program the
board without some type of rs232 adapter such as the FTDI cable?

I would like to build a Gogo board so that I can play with the Monitor
program, but I don't want to mess with etching my own board or sending
it out to a PCB shop(which tends to be expensive unless you are order a
lot of boards). I would like to build it using a generic Radio Shack
project board, but several of the links on the Br-Gogo site are broken,
including the schematic for the 3.0 Gogo board.


So why am I interested in using the Blocos(and hopefully someday the
Monitor) software on the Arduino(Babuino platform rather than the Gogo
board? Several reasons:

** It's intimidating for the beginner programmer to have to etch their
own board or send files out to a pcb shop to have them made. Arduino is
a very popular open source software/hardware platform worlwide And their
are dozens of places to order boards with some as low as $10US. Or they
could do what I like to do and simply use a generic project board and do
your own layout.

** The Arduino boards are very popular. Lots of people already have
Arduino boards; all they have to do is download the Babuino hex file
into the chip using the bootloader that is already there and they are
ready to use Blocos or Cricket logo to program with or to teach their
kids how to program or to teach a community/school group how to program.

** The Arduino boards provide ready made open source programming
languages. Any grade school age child can learn to program using
Blocos. When their programming needs exceed that gui, they can use
Cricket logo with a text editor using the same commands they are already
familiar with, but with additional flexibility. When their programming
needs exceed Cricket logo, they can use The Arduino programming
environment with a C-like language. There are tons of libraries and
coding examples to choose from. And the software runs nicely on Macs,
Windows, and Linux systems. And if their programming needs exceed what
Arduino offers, they can program in straight C and use the same
bootloader that is on the chip already. Gradeschool through graduate
school all with open source software on the same platform...that's a lot
of flexibility.

Everywhere I've shown off the Babuino platform, people have been very
excited. Over the next several weeks I will be putting together
instructionals and tutorials on how to build robots with the Babuino,
how to program using Blocos & text based Logo, and some basics with
exploring electronics & using sensors. I think that once that
foundation is available, it will generated even more interest in the
Blocos and Logo language given the popularity of the Arduino platform.

A key element in the Arduino platform is the use of the FTDI chip to
allow programing and communications through the usb port. RS232 ports
are disappearing from the computer world, especially on laptops, and
pretty much any computer less than 12 years old has usb ports. I really
like the old rs232 serial ports for working with microcontrollers, but
they are disappearing. Most Arduino boards either have an FTDI chip
dierctly on the board or they are programmed with with an FTDI cable
that has the chip and its circuitry built into it.

Under linux, the FTDI chip seems to go along with whatever naming
convention the OS already uses for usb. On my Ubuntu machine,
it's /dev/ttyUSBx, where x is some single digit number. On OS X 10.3
and 10.5, the FTDI driver uses the naming
convention /dev/tty.usbserial-FTxxxxxx, where the x's are alphanumeric
digits A-Z,0-9(or at least this is what I've found with the 7 FTDI
cables I've tested so far). This gives over 2 billion possible usb port
names( (26+10)^6). Using symbolic links works, and that is what I did
using your instructions, but most Mac users probably aren't very
comfortable with using root privileges in a terminal window. Also, if
they are using boards with FTDI chip directly on them, they will have to
create a symbolic link for every single board they use with their Mac.
This is not very graceful and certainly not user friendly. As an
alternative, can blocos query the operating system for the /dev
filenames, and use any device whose name matches tty.usbserial-FT*?


Brett

Lucas Tanure

unread,
Jan 19, 2010, 6:20:26 AM1/19/10
to br-...@googlegroups.com

>You want a Br-Gogo ? It's usb 2.0 and ready to use.
Everything I've seen on the Br-Gogo website shows that the Br-Gogo board
is RS232 based.  If you are using the usb port, how do you program the
board without some type of rs232 adapter such as the FTDI cable?

The PIC18F4550 it's Usb 2.0 ready. You don't anything else to communicate with Usb 2.0.


I would like to build a Gogo board so that I can play with the Monitor
program, but I don't want to mess with etching my own board or sending
it out to a PCB shop(which tends to be expensive unless you are order a
lot of boards).  I would like to build it using a generic Radio Shack
project board, but several of the links on the Br-Gogo site are broken,
including the schematic for the 3.0 Gogo board.

Broken links? Can you send me these links? I have tested and works fine here.
I don't know this Radio Shack project board. You can made a board at home, like this:
http://www.riccibitti.com/pcb/pcb.htm
or
http://www.qsl.net/k5lxp/projects/PCBFab/PCBFab.html
I developed the board with this in my mind.


 

So why am I interested in using the Blocos(and hopefully someday the
Monitor) software on the Arduino(Babuino platform rather than the Gogo
board?  Several reasons:

** It's intimidating for the beginner programmer to have to etch their
own board or send files out to a pcb shop to have them made.  Arduino is
a very popular open source software/hardware platform worlwide And their
are dozens of places to order boards with some as low as $10US.  Or they
could do what I like to do and simply use a generic project board and do
your own layout.

If don't be too expensive, I will send for one Br-gogo. What is your address?


 
** The Arduino boards are very popular.  Lots of people already have
Arduino boards; all they have to do is download the Babuino hex file
into the chip using the bootloader that is already there and they are
ready to use Blocos or Cricket logo to program with or to teach their
kids how to program or to teach a community/school group how to program.


Yes I know, The Br-gogo also has a bootloader.
 
** The Arduino boards provide ready made open source programming
languages.  Any grade school age child can learn to program using
Blocos.  When their programming needs exceed that gui, they can use
Cricket logo with a text editor using the same commands they are already
familiar with, but with additional flexibility.  When their programming
needs exceed Cricket logo, they can use The Arduino programming
environment with a C-like language.  There are tons of libraries and
coding examples to choose from.  And the software runs nicely on Macs,
Windows, and Linux systems.  And if their programming needs exceed what
Arduino offers, they can program in straight C and use the same
bootloader that is on the chip already.  Gradeschool through graduate
school all with open source software on the same platform...that's a lot
of flexibility.

Everywhere I've shown off the Babuino platform, people have been very
excited.  Over the next several weeks I will be putting together
instructionals and tutorials on how to build robots with the Babuino,
how to program using Blocos & text based Logo, and some basics with
exploring electronics & using sensors.  I think that once that
foundation is available, it will generated even more interest in the
Blocos and Logo language given the popularity of the Arduino platform.

Very cool!! Can you send to me too this docs?

 
A key element in the Arduino platform is the use of the FTDI chip to
allow programing and communications through the usb port.  RS232 ports
are disappearing from the computer world, especially on laptops, and
pretty much any computer less than 12 years old has usb ports.  I really
like the old rs232 serial ports for working with microcontrollers, but
they are disappearing.  Most Arduino boards either have an FTDI chip
dierctly on the board or they are programmed with with an FTDI cable
that has the chip and its circuitry built into it.


The PIC18F4550 has a built-in USB module, so you don't need any special cable.

 

Under linux, the FTDI chip seems to go along with whatever naming
convention the OS already uses for usb.  On my Ubuntu machine,
it's /dev/ttyUSBx, where x is some single digit number.  On OS X 10.3
and 10.5, the FTDI driver uses the naming
convention /dev/tty.usbserial-FTxxxxxx, where the x's are alphanumeric
digits A-Z,0-9(or at least this is what I've found with the 7 FTDI
cables I've tested so far).  This gives over 2 billion possible usb port
names( (26+10)^6).  Using symbolic links works, and that is what I did
using your instructions, but most Mac users probably aren't very
comfortable with using root privileges in a terminal window.  Also, if
they are using boards with FTDI chip directly on them, they will have to
create a symbolic link for every single board they use with their Mac.
This is not very graceful and certainly not user friendly.  As an
alternative, can blocos query the operating system for the /dev
filenames, and use any device whose name matches tty.usbserial-FT*?


Yes, We will do something like this on the next's months.

Thank's a LOT!!

I'm with new job, so I will take some time to respond.





brett

unread,
Jan 20, 2010, 12:50:09 AM1/20/10
to br-...@googlegroups.com

>
> The PIC18F4550 it's Usb 2.0 ready. You don't anything else to
> communicate with Usb 2.0.

I figured out the source of my confusion...I was looking at the Gogo
website, which uses a picf877 and shows no sign of a usb version.
Looking through your files on the Br-Gogo site on Sourceforge, I now see
your version of the Gogo board with usb support.


>
> Broken links? Can you send me these links? I have tested and works
> fine here.

The broken links were on the Gogo board website, not your Sourceforge
website. The main link that I was intersted in was for the schematic,
but I later found it bundled with the rest of the eagle files in a
different link.

> I don't know this Radio Shack project board. You can made a board at
> home, like this:
> http://www.riccibitti.com/pcb/pcb.htm
> or
> http://www.qsl.net/k5lxp/projects/PCBFab/PCBFab.html
> I developed the board with this in my mind.

Here's the link to the Radio Shack project board I use for a lot of my
projects:
http://www.radioshack.com/product/index.jsp?productId=2103800#
I have used these for years, and they are by far the handiest project
boards around.

For a person just starting out in electronics, etching their own board
is certainly possible, but does add a considerable hurdle. Personally,
I would rather not mess with the toxic chemicals involved, although with
the shift towards surface mount components, eventually I will be forced
to start etching boards.

>
> If don't be too expensive, I will send for one Br-gogo. What is your
> address?

This is very generous, but I assure you that I can afford pretty much
any programming platform I want to work with. However, if I'm going to
write instructions and tutorials for beginners to follow, I want the
platform to be as inexpensive as possible. Ordering custom pcb boards
from a pcb manufacturer is fine if you are ordering dozens of them for a
group; etching your own is fine if you are experienced, know someone who
can guide you, or have the determination practice until you get it
figured out; but what about the average kid working on his/her own just
starting out in electronics/programming? I think that they'd be much
better off if they could just spend $3 on a generic project board.

>
> Everywhere I've shown off the Babuino platform, people have
> been very
> excited. Over the next several weeks I will be putting
> together
> instructionals and tutorials on how to build robots with the
> Babuino,
> how to program using Blocos & text based Logo, and some basics
> with
> exploring electronics & using sensors. I think that once that
> foundation is available, it will generated even more interest
> in the
> Blocos and Logo language given the popularity of the Arduino
> platform.
>
> Very cool!! Can you send to me too this docs?

Most certainly! I'm mostly done with the instructions on how to build
the circuit board, then I'll write instructions on how to build the rest
of the robot, including modifying servo motors and building inexpensive
foam wheels. After that I will create a series of tutorials on
programming with Blocos. I will post all of this online and would love
to get help translating them into Portuguese and Spanish.


>
> The PIC18F4550 has a built-in USB module, so you don't need any
> special cable.

That is a very nice feature.

>
> This is not very graceful and certainly not user friendly. As
> an
> alternative, can blocos query the operating system for
> the /dev
> filenames, and use any device whose name matches
> tty.usbserial-FT*?
>
>
> Yes, We will do something like this on the next's months.

That would be great!


>
> I'm with new job, so I will take some time to respond.

Good luck with the new job!

>


Lucas Tanure

unread,
Jan 25, 2010, 5:44:26 AM1/25/10
to br-...@googlegroups.com
Brett,

To use this generic project board, you only  need the schematic. I'm right? You think that will be better if the site provide an JPEG or PNG image of schematic? We give the files that our software uses, the .sch it's a schematic and the .brd it's the board.
Do you know anything about H-Bridges? I want to develop some circuit of one H-Bridge. Can you help me?

Thanks!

Lucas Tanure

brett

unread,
Jan 25, 2010, 9:31:20 AM1/25/10
to br-...@googlegroups.com

I had previously found the schematic bundled with the zipped Eagle
files. I could easily open it since I had Eagle CAD installed. It
might be nice to provide a jpg or png image for those that don't have
Eagle installed.

I'm no expert at H-bridges, but I have looked at a number of designs and
have been wanting to develop an inexpensive one that is reasonably
efficient. What do you have in mind?
built into Br-gogo board? daughter board? standalone board?
what voltage range? what amperage range?
small, efficient surface mount components?
easy novice assembly with through-hole components?




Brett

Lucas Tanure

unread,
Jan 25, 2010, 10:49:15 AM1/25/10
to br-...@googlegroups.com
I want to develop an H-bridge module. The Br-gogo control stepper motors and servo motors. And if you plug this module the also controlls DC Motors. About 2 Ampers Current. Easy to assembly and through-hole components. Teh voltage range is 7 volts to 16 volts. I think something using the tip120 and tip125. What do you think?
The Br-Gogo will have the unl2803 to control the stepper motors and servo motors. And it's very good for Led's and small things. Also, you will be able to controll the "Bits" of this output port.




Lucas A. Tanure Alves
Equipe de Desenvolvimento Gogo Board Brasil
Skype : lucas.tanure
+55 (19) 88176559


brett

unread,
Jan 25, 2010, 11:34:28 AM1/25/10
to br-...@googlegroups.com
Here's a photo of an H-bridge I made a couple of years ago Based upon
the NTE261/262 darlington transistor chips. Is quite durable, but
darlingtons consume a lot of power due to internal voltage drops. The
NTE 261/262 are replacements for the TIP series, but I don't recall
which ones at the moment.

Gotta go...be back in a few hours.


Brett

IMG_5158 (Modified).JPG

Lucas Tanure

unread,
Jan 25, 2010, 6:48:00 PM1/25/10
to br-...@googlegroups.com
Can you send the schematic ? You think that tip120 it's bad idea?




Lucas A. Tanure Alves
Equipe de Desenvolvimento Gogo Board Brasil
Skype : lucas.tanure
+55 (19) 88176559


brett

unread,
Jan 25, 2010, 11:10:28 PM1/25/10
to br-...@googlegroups.com
The NTE261/262 are equivalent substitutes for the TIP120/125
transistors. No, I don't think that the TIP120/125 combo is a bad idea.
They are durable, cheap, and easy to find. The downside is that they
waste much more energy generating heat than mosfet's do. That would
become an issue if you are using high amperages & heat dissipation
becomes difficult, or if you are running on batteries and can't afford
the shortened battery life. Most mosfet h-bridges use a driver chip to
switch the mosfets, and most of those driver chips are surface mount
these days (though there are exceptions).

I don't have a schematic for my circuit...I didn't label a single thing
on the layout! I will have to look it over tomorrow to relearn how it
works. There's two jumpers on it, and as I recall they allow you to run
it with one pin turning it on (and through pwm controlling the power
output) and the other pin determining direction, while the other mode
allows the pwm to control both direction and power (0% duty cycle = full
reverse, 25% = half power reverse, 50% = no power output, 75% = half
power forward, 100% = full power forward). I based the circuit off of a
schematic that I found online. I'll look for it tomorrow.


Brett

brett

unread,
Jan 27, 2010, 10:02:34 AM1/27/10
to br-...@googlegroups.com
Here's a link to the website that has the h-bridge design that I based
mine on. I just added a couple of jumpers and an extra transistor so
that I could optionally drive the motor using locked anti-phase
controls.

http://www.bobblick.com/techref/projects/hbridge/hbridge.html


Brett

Lucas Tanure

unread,
Jan 28, 2010, 6:18:14 AM1/28/10
to br-...@googlegroups.com
Thanks! i will take a look later.

Regards
Reply all
Reply to author
Forward
0 new messages