Let's Make Robots!

I2C

Servo Controller: A thought experiment

birdmun's picture

First up, this is at best a work in progress, at worst only ramblings.

I have seen members asking about driving more than a handful of servos and getting the response that they can either use an arduino and its assorted libraries to drive 12+ servos, correction, up to 20 servos or get a dedicated controller board that seems to cost in the area of 50USD. I spent an hour or so knocking up an idea. I want to lay out my thoughts and see where it could or should go.

 

Video Encoding with CS4954

AnTenNnA's picture

Hi,

I have some new and interesting stuff to share. The attached photos demonstrate my progress with generating baseband video signals (CVBS or composite video) for wireless transmission (see my other blog posts). As I finally realised that video stream editing at 27MHz data rate (towards stereoscopic vision) is hardly possible with the Parallax Propeller, I turned over to hardware editing. In the first step I thought I should start with discrete logic IC's but a colleague of mine "persuaded" me to use an FPGA. Well, he was definitely right.

12 servos controller with Arduino
Building a robot with wheels or with legs needs a design completly different. One of the biggest difference is the type and number of motors. While for a robot … Read more
Yet another walking robot but starting from scratch.
Using a
Update August 16, 2011 The PCB boards arrived a day earlier than expected (ordered on a Friday, arrived the following Friday). Eleven brain boards and 66 leg … Read more

How to Connect 3 Arduinos using I2C?

lex lee's picture

I've tried hooking up 2 arduinos using I2C and I need to expand it to 3 now cause of the Razor IMU sensor, which is also an Arduino.

 

As the I2C uses analog pins 4 & 5, how do the master Arduino knows which slave it is talking to?

New controller board

jip's picture

Hello, it's been a really long time, since I last posted something on LMR, but now I've made a new controller for my robot and I thought I'd blog about it.

The controller features

Intellibrain problems

AgentBurn's picture

Hello everybody. I'm trying to get my intellibrain bot to comunicate with arduino via I2C, but I get some errors which I don't know how to debug. Google doesn't help at all. Here is what I get on my display when I turn on the program:
"Code: 20&97b6 
8d57 8d24 839d"
and after it shows that very shortly it turns the program off. It happens both when arduino is on and when it's off.

Two I2C-slaves ==> i2cslave-command repeated?

MG2R's picture

Hi,

In the near future I'll have to control 2 MD03 motor controllers via I2C. Now, I don't get much about the i2c-commands integrated in PicAxe µC's so I'd like to ask how I should talk to them. Should I issue the i2cslave-command everytime I want to speak to one, or should I issue it twice (euch with another address) in the beginning of the program, or is there another way that I don't now about?

Thanks!

Problems with I2C -- DISCARDED

MG2R's picture

I'm trying to control two motors  by means of a joystick. This means I've coupled the potentiometers inside the joystick to my Picaxe 28X1 and my Picaxe 28X1 to two MD03 motor controllers. 

While testing I'm using only one potentiometer and one MD03. The problem is that I cannot get the system to work.

The program I'm using right now is:

i2cslave %10110000, i2cfast,i2cbyte

main:

readadc 0,b0

Embedded video: 
Make servo/whatever controller out of Picaxe 28x1 and control it from Arduino over I2C
While working on my first Arduino project I found out that servo library is not compatible with software serial library which is very bad for my project. So, I … Read more

Problem with I2C mode of 16f877a

I am having problem with I2C mode of 16f877a. I wrote a code for I2C ranging mode of the SRF02 sensors. At first I thought the problem was with the code, but then I debugged the circuit a little; the code is as below:

SRF02 and 16f877a in I2C mode ranging

Hi,

I am trying to test SRF02 ultrasonic rangers I just bought and to do that I connected them as required, and wrote a program in MIKROC for I2C transmission. My problem is that everytime I power up the curcuit my PIC burns. I connected pull up resistors to each of SDA and SCL lines; could it be that these resistors impose too much current into SCL and SDA pins of the PIC? Maybe I have to use a buffer between bus and 5V? The code is below. I am new to embedded programming so any of your comments would be of much use to me.

Thank you,

Denis 

The Code:

connecting an i2c device with an AXE020 project board.

I've been thinking about playing around with 

What should be the resistance between clock, and data on an I²C bus?

amando96's picture

trying some i2c devices, though they aren't working, so i thought maybe they where shorting, my cheap multimiter reads 3kohm, is it suposed to be like this?

the device is a cheap ebay nunchuck, made myself a wiichuck adapter with vero board, though i'm measuring the resistance directly from the original socket, so it's not my homemade adaptor thats causing the probems...

 

thanks 

i2c = PS/2?

amando96's picture

Hi, can i connect i2c interface devices to my computer, by using the PS/2 jack?

thanks 

 

 

 

Explore an environment, create maps, take pictures, never get stuck.
Using a
Tesla will be a multifunctional robot that will have priority tasks. Unlike other robots that will just "do" things, this robot will have tasks only if certain … Read more

Dual 18F4620 board with supporting 18F2525 for display

Krumlink's picture

Right now I am working on my master-slave-slave board that will suit my needs for a long time. It has a master 4620, that communicates to another 4620 for processor assistance.

 4620 MASTER: Spaces for 5 servos, rs232, I2C, sn754410 motor controller, 8 ADC channels, 2x5 header so it is expandable into another board.

4620 SLAVE: Setting switches, proximity IR sensors (8 for complete sensing), speaker, encoders (rear and front for a car drive bot, left and right for 2 wheel operation), 38khz IR led driver, bumper switches and spaces for 6 servos I2C.

A snake robot. Serpentine locomotion and other snake gaits read from a micro SD card. Obstable avoidance and eventially path planning.
Using a
This is our entry into the PIC32 challenge. Please check it out on http://www.pivut.com/snake.htm and VOTE FOR US before 2/10/09! It is our first robot. All of the … Read more
I've found this multifunction chip on ebay,  the official webpage is http://www.web4robot.com/ I've just bought a pair, I'll come back to post with my … Read more
drive a parallel display using a 8574 port expander
Using a
Any parallelly interfaced character LCD you get these days will have a Hitachi HD44780 chip or a different one compatible with the HD44780. These usually have 14 … Read more

I2C vs Serial

Calculon320's picture

I hereby submit another plea to the robot gods out there:

I've read a lot of very informative info on both i2c and serial communication as a way for one IC to control others. My question is: which will work better for my needs?

My plan is to make a robot that has a seperate IC for each aspect of its behavior (movement, communication, etc.). So which is faster? cheaper? fewer wires? easier to program? I'm sure both have pros and cons.

Okay, go.

Price: $12.9 USD
If you've been thinking your robot needs more memory or the ability to record/playback sounds like Frits's Drum machine or even if you just want to play with i2c … Read more
Tips on EEPROMS, i2c, scratchpad and variables
The picaxe 28X1 has some very cool memory features that can be used to free up program space or to give your robot a more convenient user interface. This post … Read more
Avoid obstacles, wake me up, water the plants.
Using a
09/06/09 I finished the latest cleaner head and mounted it temporarily on Ozzy with double sided tape. This is the 3rd revision of the vacuum head, the 2nd was made … Read more

Analog multiplexor (possibly i2c)

Nicola's picture
Hello! i have almost finished my analog inputs on my last project.. i have only one left and i need to attach some potentiometers to do some calibration.. I could really use some nice multiplexing. What i'd like is a chip with some analog inputs and possibly an i2c interface so that you can choose which analog pin to read and get a digital reading. Do you know if anything like this exists ?

Problems with i2c (and an LCD display)

Nicola's picture

So, i just wasted an evening trying to make an LCD with i2c work with my picaxe.

I connected the SCL and SDA of the board to the other end on the LCD. (of course not crossing them :P)  BTW on the picaxe the pins are: Digital input 3 = SCL; Digital input 4 = SDA, am i right ?

If so, other question is: do i need the two pullup resistors ? i've read somewhere that they're already there on the board. But if so, the pin should be high most of the time, shouldn't it ? testing with my voltmeter reads 0V. 

PS i have the picaxe 28x1. 

Price: $4.5 USD
There are a few models of this but the SM125-IC is an RFID Interigator with read/write capabilities and I2C connection capabilities. I have been looking for a chip … Read more
If you're ever in need of additional digital inputs or outputs then this chip may be an answer to your prayers. It only requires two connections from your … Read more
jip's picture