LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

i2c ServoModule for NXT

Hallo all,
 
i'm new in programming with Labview and tried to make a Block for my Servocontroller. I assambled a I2C Servo Module to control up to 8 Servos from the NXT. The Module is about 19 mm to 43 mm and after removing the Progadapter it will be smaller. It works with an AVR
Mega8 Processor and the software for the AVR is under GNU lisence.
Because i'm new please have look to my block if something could be made better ? Or if there are some Errors.
 
many thanks for your help.
 
kind regards
Harald
0 Kudos
Message 1 of 5
(8,206 Views)

I took a quick look through the code and I think this block actually looks pretty good. There isn't anything I would've coded differently in the implementation VIs. The Configuration UI looks good from a functional perspective (all the values stuck between clicks on the Block, things grey out properly, etc). The Draw values all seemed to update properly on the block too. I'm glad that, even though you were new to LabVIEW, you've been able to be successful developing blocks for MINDSTORMS NXT.

Two small comments:

  1. I had to rename the folder within your zip file from "IIC Servo_Block" to just "IIC Servo". The Block Import/Export Wizard follows strict naming conventions and will not recognize your block unless the folder has the same name as your implementation VI.
  2. You might consider renaming "WriteSensor.vi" to something a little more specific to your block, like "IIC Servo_WriteSensor.vi". The reason being that LabVIEW/Mindstorms can't have two VIs of the same name in memory, so if some other 3rd party block developer has a WriteSensor.vi and a user has both blocks installed, one of the blocks will most likely be broken.

I haven't run the block at all to see if it really works, but it looks like it should. Good work!

Brady Duggan
LEGO MINDSTORMS team
National Instruments

0 Kudos
Message 2 of 5
(8,158 Views)

Hello Brady,

Many thanks for reviewing the block and the tips.

The elementary functions work fine. I build up the hardware and made some tests from the NXT. The Servos work well with the

Block. I wanted to know if i'm on the right way with programming blocks. Next i will do is to get the Possitions from the Servos by a I2C read block.

If someone is interrested i can post some discriptions and photos how to build up the Hardware. The Servos a very cheap ones from Conrad (ES-05)

kind regards

Harald

 

 

0 Kudos
Message 3 of 5
(8,154 Views)
I'll be happy to see some pictures and description of this servo controller.
 
Guy Ziv
NXTasy.org
0 Kudos
Message 4 of 5
(8,028 Views)

hello,

i'm just in a redesign of the Servo-Controller. i got a original Lego-sensor case and i want to get it into

this case. This is a little bit tricky because the board is upside down in the Case. But i will post some photos from

the Board as it is. (after i have my camera back). I'm just writing a Block to read the Position and Speed from each Servo.

rgds

Harald

0 Kudos
Message 5 of 5
(8,003 Views)