Let's Make Robots!

serial

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

OddBot's picture

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.

Embedded video: 

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

HugoPimm's picture

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

TobyM's picture

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

loby's picture

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

serial communication on picaxe

ducksrule's picture

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

flare's picture

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

Mintoris's picture

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

Markamas's picture

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" ;)?

pins specification

i need to know the pin configurations of usb,serial,and parallel ports of a computer.....someone make me understand about the micro processor DDR,registor,address,etc evrythig related to a micro processor..

Problem with Ultrasound Sensor

Gonzik's picture

Hello LMR.

I am working on a current project but seem to be having a ridiculous amount of difficulty implementing an SRF02 Ultrasound sensor. I am using it in serial mode and communicating with an Arduino Duemilanove. The problem is not in the wiring as I triple checked that.

The adruino is supposed to send 2 bytes to the SRF02 [ address, command ] and then receive 2 bytes in response giving the distance measured by the sensor.

Tracks human faces using a webcamera and two servo motors to pan and tilt
Using a
This is my first time using OpenCV, an open source computer vision library developed by Intel Corporation.  It wasn't too hard to get setup or use OpenCV in … Read more

ISP or Serial programming an Arduino

rik's picture

I am the proud owner of an uBotino board by Robot-x. I do not own a USB-to-Arduino cable (FTDI with auto-reset). However, I do own computers with good old fashioned serial ports.

So I think I'm gonna build a serial programming circuit. Would the classic "Picaxe" level-correcting schematic work in this case?

That's:
* a voltage divider to shift down the signal from my PC from ca 11V to 5V;
* a series resistor in both data lines to limit current;

Serial RFID reader troubles

Caleborp's picture

I recently purchased the seeedstudio serial RFID reader for 125khz tags, but I cant really understand the datasheet. I am having trouble figuring out how I am supposed to interface it with my picaxe. 

Here is the product:

http://www.robotshop.ca/seeedstudio-125khz-rfid-module-uart-2.html

And her is the datasheet:

http://www.robotshop.ca/content/PDF/datasheet-rfr101a1m.pdf

Communicates with your pc to control your robot
The wiimote is a really cool controller to use with your robots. It has many buttons, accelerometers and even a camera which tells the coordinates of the four … Read more

Linux crashing when reading from serial port, problem and solution

nuumio's picture

The problem:

I have a weather station project going on and I'm planning to use my Linux box for data logging. I have ATMega168 writing data to its USART, FT232R doing USB serial (see my first SMD soldering here: http://letsmakerobots.com/node/23323) and Ubuntu Linux logging data. Here's a simple picture of the setup:


Weather station data logging test setup

Serial Pins on AXE020

XicoMBD's picture

 

On the tutorial Picaxe for dummies Fritsl says the following:

Well, this is probably the simplest robot I've ever made. It is just this event's robot mounted in a old IBM box. I've built it just to serve as a testing platform … Read more
Controls arduino's Inputs and Outputs
UPDATE - 15 September 2010: Here is the second version.  No crossing lines this time, the digital pins are broken in two blocks, and the enumeration of them goes … Read more

serial uart with only rx or tx not both

Mickey's picture

Can I deliver serial data from one direction to enother (2 mcu) only with tx :

MCU1                                       MCU2

      TX<-------------------------------------<RX

 

?

VB programming help wanted! Plotting serial data.

ezekiel181's picture

Hi guys, I`m attempting my own low speed arduino oscilloscope but have hit a brick wall with my mediocre programming skills. The arduino program and input stage works fine, it`s the PC software thats killing me.