Jump to content

Recommended Posts

Posted (edited)

After getting help from Thorsten Benter, I ported his RobotC program to brickOS, you can view it

https://m.youtube.com/user/mikezang2008#/watch?v=w1fuHvXSCTc

This train is controlled by RCX with rotation sensor and PF train motor.

You will see the train hard to move on curve without PID, and train will keep constant speed moving with PID.

Next I will try to control PF receiver in constant speed moving with PID.

Edited by mikezang
Posted

Nice job MikeZang! Endeavor is a good thing and perseverance is a virtue! I hope you also get good progress on the PF part!

Posted (edited)

Nice work, just a shame the Rcx is so large

This train is 8W width and 21 plates height between baseplate and roof.

Edited by mikezang
  • 4 weeks later...
Posted

Last time I built a PID Speed Control Train by RCX with Rotation Sensor on the train.

This time I created a PID Speed Control Train by RCX and PF Receiver with Rotation Sensor on the train. You can find that I rebuilding 79111, I put Battery box, PF Receiver and PF motor on flat car, then put RCX and rotation sensor on prison car.img_3023.jpgimg_3024.jpgimg_3025.jpg

Next time I will create a PID Speed Control Train by RCX not on the train with reed sensor on track.

Posted

so if i understood every thing :

- you are powering the motor by the battery box

- you are controlling the ir receiver by a program in the RCX and the IR output

the sensor control the speed, and modify the speed ?

Posted

so if i understood every thing :

- you are powering the motor by the battery box

- you are controlling the ir receiver by a program in the RCX and the IR output

the sensor control the speed, and modify the speed ?

Yeah, rotation sensor check the speed and feedback to RCX, RCX use PID algorithm to calculate next speed, then send this speed to PF receiver by IR, receiver control motor to speed up/down, loop until stop or manual control command received.

Posted

well, it is very very very interesting, and your next step too !

on the last picture, there is the battery box between the RCX and the ir receiver, it is working in this configuration ?

i'm going to change home, so every thing is now in box, but will it be able to study your code (and use it after ;))?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...