Posts Tagged ‘robotc’
Question:How do I make my Dobot Magician talk to a VEX Cortex?
Answer:It’s called handshaking and it is probably one of the more difficult tasks when working with robots and machines. We use an optical isolator so as not to damage any of the equipment with incompatible voltages, so be sure to see the website for the wiring diagrams. Watch this four minute video to see how it’s done! Continue Reading
Question:I can’t seem to get my encoder to work no matter what I do! It will only ever return a value of 0 or 1, and only for a moment. What’s up?
Answer:Well, did you restart your software and hardware? Then check this out! I’ll bet you have another analog sensor plugged into your cortex, like the sonar…. Found this after searching the web…. If using another analog sensor, the Quad Encoder MUST be plugged into a higher number port. Really? Yup. See the snip below. Spent at least a day on this then found the documentation on line, switched the ports with the sonar sensor so that the encoder was on 8 & 9, and the sonar on 4 & 5, and viola! Success! Try it! Also… we NEVER got the error as shown below… It just didn’t work. Download the whole VEX pdf here: Quadrature+Encoders Continue Reading
Question:The VEX Testbed is boring; do you know of another way to make learning RobotC programming more appealing to high school students?
Answer:Well, in my classroom we build clawbots, then add all of the sensors to them. we then get to program the sensors on a real, mobile robot! Kids love it and the culminating activity is a game where they get to drive the robots around; just like a real VEX competition. In the meantime, they are learning how to program inputs and outputs, the difference between analog and digital, and the how closed and open loop systems work.
- Clawbot Sensor Install: This document shows you how to install the sensors on the clawbot to complete some activities.
- Clawbot Checklist: This is a document that the students do screen captures of their RobotC programs on so that you can keep track of their progress as they go.
- Cortex Wiring Diagram: An example of the Cortex wiring. I like to use a template in my class so each robot is the same; it makes troubleshooting easier. It looks like this: