Forum >miniQ code problem
RoboticsGeneral

miniQ code problem

userHead tk1965 2014-03-04 19:27:54 23187 Views6 Replies
Hello,

I purchased both the 2wd and the 4wd miniQ robots for my kids. I can make them work with the "remote" and "song" sample code. So I know the robot does function correctly. But the "line following" code does nothing. If I press the "key1, 2, 3" buttons I see the green/red lights change. But I can't get it to actually turn on the motors and do anything. The code I am using came from the wiki page.

Anyone have a working version of line following code, or directions on how to use the provided code?

Thanks
2014-08-12 19:43:29 Aha, 2WD looks like too fast, so it is shaking all the time.
Anyway, nice video.
userHeadPic Grey.CC
2014-08-12 17:36:13 Here's a couple video's of these DFRobot kits line following.


MiniQ 2wd Line Follower Robot Kit
[url=https://www.youtube.com/watch?v=V51l6Gb1kro]https://www.youtube.com/watch?v=V51l6Gb1kro[/url]

MiniQ 4wd Line Follower Robot Kit Video
[url=https://www.youtube.com/watch?v=-3KmUZkPBtU]https://www.youtube.com/watch?v=-3KmUZkPBtU[/url]
userHeadPic tk1965
2014-03-07 05:14:59 Here's the working 4wd code. I had to change some parts as it turns different than the 2wd.

I'm still learning to program, so when stuff doesn't work I get lost. But if the code is close to right then I can normally figure out whats wrong.....the trials of learning.....Thanks
userHeadPic tk1965
2014-03-07 02:06:17 Really?
I test it on miniq 4WD. It works.
O.K. Try this metro library.
This is what I am using now.
userHeadPic Grey.CC
2014-03-07 00:51:50 Grey, I fixed the code you posted as it errors out, and will post it below.
It works on the 2wd with no issues. But the 4wd version will require a bit of tweaking to properly follow a line. I will post it after a bit of editing.
Thanks!!!  :)
userHeadPic tk1965
2014-03-06 02:33:49 Hello,
Sorry for the late reply,
We have test the sample code, it is not very well
Try the follow one.
You could set the threshold value and speed yourself.

Here is the library:
https://github.com/thomasfredericks/Metro-Arduino-Wiring
You could try it first.
userHeadPic Grey.CC