Let's Make Robots!

serial

Has anyone ported Bill Porters Easy Transfer for Raspberry PI?

I *REALLY* like Bill Porter's Easy Transfer library for Arduino.  Yes, I've Goo-oo-oo-gled this, but have not found any hits on Easy Transfer (Bill Porter's Easy Transfer, as opposed to that MickeySoft product)  for Raspberry PI.  

 

I would Love to be able to move a struct { }  from Arduino to Pi, just as easy...

Code Post - Interfacing Arduino and Python

This is something I've done by hand at least ten times and always seem to lose it so I've decided to post it here. It is an easy way to debug and test stuff will developing software for the Arduino (or any Microcontroller really). There is a python code that sends string messages to the arduino over serial based on which arrow key on your keyboard is pressed. There is also an Arduino code that listens for these messages, then repeats the message back to the PC to make sure it went through.

Read RFID tags from the Parallax RFID reader on the Raspi
How to connect the Parallax RFID Serial Reader to the Raspberry Pi safely. Using a Logic Level Converter from SparkFun to step down the 5V serial from the reader … Read more

Three 08M2s and a Pi?

Hello! I'm a complete Picaxe n00b, but I have read quite a bit online, so hopefully my ideas here are not entirely inane.

I have been playing around with a Raspberry Pi as the brain for a small two-wheeled differential drive robot. It's very simple, but it more or less works.

Some software help with Bluetooth modules

I got tired of operating "blind" when working with those inexpensive serial bluetooth modules, so I wrote a utility that helps with testing them as well as reprogramming the name/pin/baud.  

[SOLVED] Processing communicating with Arduino via Bluetooth problems

I am at my wits end! Ive spent the last three or so hours trying to get this to work with no avail.

I will update with "4.x" build.  But wanted to get video up as demonstration of concept.  SSH-->RPi-->I2C Optoisolator-->Arduino Mini Pro--->Self … Read more

Serial monitoring

Hi.

Does anybody know of a decent freebie transparent serial monitor? I've been having some trouble with processing and arduino, (see this), and I'd like to be able to compare what processing and the arduino terminal are sending so I can find the problem.

Thans in advance.

Talk to my computer through Serial?

Long time no see LMR!!!!

This semester was my most brutal yet, but the rewards have been priceless!

 

Anyways, back to the robots,

So my current project is to create a virtual indentity that I can have a VERY simple conversation with. His name is Sergei, cause everyone needs an awesome Russian buddy. But I find myself being a bit stuck on one thing: Serial Communications

 

What Im really trying to better understand is how to make the Arduino respond to my serial input. 

Processing-Arduino serial port problem

I've picked up an arduino to start working with, and have currently slung together a bit of code to toggle the on-board LED over serial. I've also modified one of the Processing demos to use as a GUI to turn it on and off. However, my arduino is on COM6, and if I try to change the port on Processing to anything other than 0, it comes up with an error. I know the arduino code works, as I've tried it with the arduino serial terminal, however the processing app doesn't want to play ball.

How To: Arduino to Parallax Serial Terminal

Well folks, I finally got around to doing this...

A custom Pi shield or an Arduino?

As more and more people get a Pi they are asking how to interface it to their robot. I do not own a Pi but I looked at the GPIO pins available for interfacing. Apart from general digital I/O pins you have I2C, SPI and Serial interfacing available. I assume there is a library or something that allows these pins to be easily access from within the Linux operating system.

So the question becomes do you just use another MCU such as an Arduino to provide the necessary I/O functionality or do you use a custom shield?

Interfacing yor robot to your PC using Gobetwino (can work with any MCU)

I am currently working on a project where I need to teach my robot to "see" using an ultrasound sensor. In particular it must find and collect drink cans on a playfield and return them to a specific location.

To make the programming easier I wanted to take the sensor output from the robot and display it on the computer as a chart. As I am a terrible programmer I did a quick google search and came up with Gobetwino.

read raw gpa data from gps module to arduino

Hey guys I am trying to read raw data from a gps module using TTL communication on RX pin 0 on the arduino mega. i dont know how to program it since i am total noob at arduino programming. 

can someone help me out please.

Allows me to program my Arduino via bluetooth, USB not needed any more
I finally figured out how to program my Arduino controlled "Start Here Robot" clone without leaving my chair using bluetooth. Unfortunately it still only works when … Read more

Matlab and PICAXE comms

Anyone out there who knows how to make Matlab work with serial communications?

I'm in the early stages of writing a matlab program to do inverse kinematics for a leggy kinda robot, and I want to get it to send the numbers to a picaxe via rs232 - seems fairly straightforward?

My test program is behaving wierdly

*code*

 

Picaxe = serial('COM4');

set(Picaxe,'BaudRate', 9600, 'DataBits', 8, 'Parity', 'none','StopBits', 1, 'FlowControl', 'none'); 

fopen(Picaxe);

fprintf(Picaxe,'1234');

Picaxe.ValuesSent

B = fread(Picaxe)

Number up to 180 from C# serial print mapped to servo movement

Okay, I'm thinking the title probably isn't very descriptive but it's late and it's the best I can do. Basically, I've written a program in C# (I shall unveil this on here in a few days) that ouputs a value between 0 and 180 based on certain conditions. I want to be able to take this value and print it over the serial and read it at the Arduino end as an integer, so i can just have myServo.write(int).

At the moment, in C# I'm using sp.Write(int.ToString()); but I can use the same command to write a byte array and a char array.

Arduino Serial Question

Hello,

I was wondering if anyone could tell me how to send a string to the arduino and just echo it back to the serial monitor but also create a NEW LINE.  Right now I got it to take a string and echo it back exactly but every time I send the string form the computer to the ard it just tacks the echo from the ard right back onto the end of the previous data that is showing in the monitor.  

 

For example: 

I get this:

hello from arduino!!hello from arduino!!

Newbee: Arduino MEGA and ultrasonic URM37 V3.2

Hello,
I tried to start with developing something with my new Arduino (DFRduino
Mega 2560).

serial communication on picaxe

i have been looking to do something with the easy radio module (forgive me if i do not use the correct terminology) but i have know idea how to use the serxxd, sertxd, serout and serin commands the explanations on the picaxe website wern't very useful . so do i just tell it to send out a random number ( with which command?) and then on the recieving end say if (again, i don't know which command) = then the same random number, then do what i want it to do. wouldn't that mean i have to put 

if this = this do this

if this = this do this

if this = this do this

Arduino to processing

So I have a Sharp IR sensor connected to my Arduino, feeding to my pc the values of its analog input, via the Serial connection.

To do this, I'm using the Serial.write() command. I want to be able to read these values into processing, but when I use the Serial.read() command in Processing, the values it picks up are nothing like what the Arduino Serial monitor is giving me, and are unaffected by the IR sensor.

What am I doing wrong, and how can I get processing to read these values from the IR sensor?

Any help is appreciated.

tts 256 text to speech serial data

If anybody knows this it would be great help to me. on the tts 256 data sheet it says on start up that the tts256 transmits serial data to host processor, but Im not sure what data it is sending for me to receive. Im using a picaxe microcontroller.

Bluetooth control from your Android phone or tablet

Hello, I am the author of Mintoris Basic for Android phones and tablets.  I recently added Bluetooth serial communications to the language with the intention of making it very easy to communicate and control robots.

Here is a short example program in Mintoris Basic which connects to a device then transmits data from the phones accelerometer.  So as you tilt the phone or tablet in any direction, the amount of tilt is sent to the Bluetooth device.

dim a$(0)
dim c(4)

' Get a string array of all the paired Bluetooth devices

a$()=BTGetPaired$()

Help with Hserin/Hserout commands?

I have 2 Picaxe 28x1's that will need to communicate serially with one another while each performing tasks such as PWM, reading ADC, simple outputs. As I understand, the Hserin and Hserout pins/commands allow the Picaxes to recieve serial data in the background, store it somewhere, and read the stored data whenever necessary. I need Picaxe A to do tasks, and then send 2 variables to Picaxe B without interupting B's program flow. B needs to be able to look up the variable sent from A whenever necessary and continue on. How would I connect the 2 Hserin/Hserout pairs on each Picaxe?

28X1 Pin 7 (Serial Out) Used as Normal Output??

Is it possible to use pin 7 of the Picaxe 28x1, which is normally used in the download circuit, alternately as a normal output that could in my case drive a single LED? If so, what would be the code for it?

Picaxe Serial Communication Through Prog. Socket??

Hey, I'm wondering: If I have 2 Picaxe 28X1's that both have their own programming sockets, after programming them, can I use a male to male audio cable and connect their sockets, and send information from one to the other with serout commands? One 28x1 sends info to the other, no data is sent back, so only on serial line is needed. Is it possible, and how would I implement it?

Using an RF receiver/transceiver pair along with a wireless camera to process the images and send commands to a mobile robot

I would like to create a setup I will be using for a lot of my upcoming robots. A small wireless camera that will be ultimately outputting through USB to my computer. The computer processes the video and sends commands to the robot via RF. I guess the serial connection will be no more than 1900 bds. How can I coordinate RF and image-processing in a single program for autonomous navigation/other tasks (I can almost hear GroG saying "MyRobotLab" ;)?