mikezang Posted April 21, 2014 Posted April 21, 2014 (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 April 21, 2014 by mikezang Quote
JopieK Posted April 21, 2014 Posted April 21, 2014 Nice job MikeZang! Endeavor is a good thing and perseverance is a virtue! I hope you also get good progress on the PF part! Quote
elicend Posted April 21, 2014 Posted April 21, 2014 hi i'm still very interested by your works ;) Quote
kieran Posted April 21, 2014 Posted April 21, 2014 (edited) Nice work, just a shame the Rcx is so large Edited April 21, 2014 by kieran Quote
mikezang Posted April 21, 2014 Author Posted April 21, 2014 (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 April 22, 2014 by mikezang Quote
mikezang Posted May 15, 2014 Author Posted May 15, 2014 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. Next time I will create a PID Speed Control Train by RCX not on the train with reed sensor on track. Quote
elicend Posted May 15, 2014 Posted May 15, 2014 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 ? Quote
mikezang Posted May 16, 2014 Author Posted May 16, 2014 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. Quote
elicend Posted May 17, 2014 Posted May 17, 2014 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 ;))? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.