At the beginning I just wanted to add power function motors to my newly bought EV3 set in order to move the arms of the Ev3rstorm.
Then I was disappointed that I can not easily link my NXT and my EV3.
So I have made two atmega328 based board to drive this !
First board to drive 4 powerfunctions motor with speed and direction using one ev3 sensor port ( bonus : 4 analog input ) :
then I made a second board based on an atmega328 to drive a RS011MC card (4 DC motor driver ) to drive 3 NXT/EV3 motors :
One sensor port used on the EV3 to drive two atmega328 with I2C.
The two atmega328 are burned with arduino bootloader so it's easier to manage.
Sketch are not ready but are coming !
I can manage 4 PF motors with speed and 3 NXT/EV3 motors with rotary encoders and speed.
I hope this will help someone else.
And nice to see that more people than just me are interfacing AVR CPUs to Lego Mindstorms!
I did something quite similar for the NXT interfacing an Arduino Mega or Due,
up to 8 Lego encoder motors (8 for Arduino Mega - just 6 for Arduino Due),
up to 8 analog sensors (including original Lego Mindstorms sensors or even Lego I2C ultrasonic sensors ),
up to 16 digital touch sensors
and optionally even different devices and sensors like e.g., a PC keyboard or a PixyCam to my NXT
http://www.mindstormsforum.de/viewtopic ... 700#p66006
Unfortunately I am not able to program the EV3 to do the same work being interfaced by I2C
- Arduino Due as a multi-I/O muxer to a Lego Mindstorms NXT
local on the NXT: 3 encoder motors plus 3 US sensors
remote on the Arduino Due muxer: 4 analog Lego sensors,
4 analog Sharp IR sensors,
6 encoder motors (Mega: 8),
plus (unfortunately not shown): additionally 16 touch sensors
plus optionally 1 PC keyboard attached to the Arduino board
With my Ev3 I do not succeed in driving a PCF8574 ( I2C-8 i/o) but it works with the NXT. I don't know why !!
But with an atmega no problem with both bricks.
Can it be a 5V vs. 3.3V signal level issue for the EV3 ?
( It's very cool to be able to install lejos on a SD without flashing the lego os on the brick !!! )
Reading a PCF8574 works perfectly with same hardware !
Lego original firmware issue ???
Users browsing this forum: No registered users and 14 guests