ROBODYSSEY SYSTEMS LLC

Product Catalog
Code Page
Policies
Gallery
Whats New
Press Releases
Resources
Links
Contact Us
About Us
Press

Home Product Catalog Shopping Cart Resources Links
Code Page Policies Gallery

The communication cable to the PC is made as specified in the PicBasic Compiler Manual.
1.0K DB9
pin --/\/\/\---- RS-232 RX Pin 2
GND ------------ RS-232 GND Pin 5
In this diagram, a 1K resistor is placed in line with the chosen output pin and pin2 of a DB9 connector. Ground is connected from pin 5 of the DB9 to any of the ground pins on the PicPac.

In the example below, I chose PortB pin0 for the serial out.
The baud rates are 300, 1200, 2400, and 9600. The N in "N2400" specifies that the signal is TTL inverted. Other choices are: T for TTL true, OT for Open Drain and ON for Open Source.
So, in the case below:
SerOut 0, N2400, ("Hello",10,13)
Means: send "Hello" with a line feed(10) and return(13) at 2400 baud with an inverted TTL signal out pin 0 on Port B.

I used Hyperterminal in windows to receive the the signal.

'******** Dispay Data on the PC ****************
'@ Platform: PicBasic
'@ Version: 1.0
'@ Author: Brian Patton (brianp@robodyssey.com)
' Robodyssey Systems, LLC. - www.robodyssey.com
'@ Last Updated: Feb 18, 2004
'***********************************************
' This Program uses the 16F876. Displays on your computer
'"Hello" and flashes an LED on and Off. The RS232 is connected
'to pin 0 on Port B. The LED to pin 3, Port B via a 10k
'resistor
'*****Initiation********************************
Init:
Dirs = %11111111 ' Set all Port B to output

'*****Main Code Block Area**********************
start:
High 3
SerOut 0, N2400, ("Hello",10,13)
Pause 100
Low 3
Pause 100
GoTo start 'Start it all over again
End

Home Product Catalog Shopping Cart Resources Links
Code Page Policies Gallery

Robodyssey Systems manufactures Robot Kits including Autonomous Mobile Walking Robots, Wheeled Robots, Talking Robots, Expressive Robots, and Social Robots. We also sell Robotics Accessories including Nexcell NiMH AA Rechargeable Batteries, Nexcell NiMH AAA Rechargeable Batteries, Battery Holders, Velcro Straps for Battery Packs, Battery Chargers, Robot Grippers, Hobby Servos, Servos Modified for Continuous Rotation, Tail Wheels for all Rolling Robotic Platforms, Polyurethane Skate Wheels with Servo Adapter Hubs, Sharp IR Sensors and Adjustable Sensor Brackets, Sensor Cables, and Programming Cables. All of our Robot Kits can be purchased as easy to assemble robot kits or as fully assembled stationary or mobile robots. Robodyssey uses 1/8 inch aluminum and acetyl for most all of our mobile robot components and robotics accessories. We provide classroom training for teachers interested in integrating robotics, computer programming and electronics into the classroom.

We hope you enjoy our web site. Feel free to use any robotic resources. Robodyssey is your complete solution for Educational Robotics as well as Hobby Robotics.