Go to advanced search

by TrinhTUHH
Mon Jul 24, 2017 3:52 pm
Forum: HATs and other add-ons
Topic: Gertbot
Replies: 146
Views: 52039

Re: Gertbot

Is there anyway to fix this? Not until I have some idea what the error might be. I need to think on that a bit. (Actually, I need to think on that A LOT) Can you give me some input about what fluctuations you see? And do you know why if I call "quad_on" command but not use "quad_limit" after that, ...
by TrinhTUHH
Mon Jul 24, 2017 12:07 pm
Forum: HATs and other add-ons
Topic: Gertbot
Replies: 146
Views: 52039

Re: Gertbot

Is it true that we should not change the duty cycle while running the "quad_read" command?
by TrinhTUHH
Thu Jul 20, 2017 7:23 pm
Forum: HATs and other add-ons
Topic: Gertbot
Replies: 146
Views: 52039

Re: Gertbot

Thank you in advance! Next week I would try with a optical encoder and see what happens. The board is not with me right now so I would send you photos of the fluctuation next week!
by TrinhTUHH
Wed Jul 19, 2017 7:30 pm
Forum: HATs and other add-ons
Topic: Gertbot
Replies: 146
Views: 52039

Re: Gertbot

No I did not get any errors. Do you get errors? If so, the most likely cause is that the code changes faster then the 1000 Hz max speed. Is there anyway to fix this? And do you know why if I call "quad_on" command but not use "quad_limit" after that, the motor doesn't move at all. The same happens t...
by TrinhTUHH
Wed Jul 19, 2017 6:50 pm
Forum: HATs and other add-ons
Topic: Gertbot
Replies: 146
Views: 52039

Re: Gertbot

Ok so I should not use it with low speed, but it should work ok for normal speed, right? But the position values that I read from the encoder sometimes fluctuate even when the motor runs at normal speed and in the same direction.
by TrinhTUHH
Wed Jul 19, 2017 12:19 pm
Forum: HATs and other add-ons
Topic: Gertbot
Replies: 146
Views: 52039

Re: Gertbot

I'll give a longer answer later. I am travelling at the moment. As my understanding when I read from the quadrature encoder, the ouput value should be in the range of 0 to 3200 or (-1600 to 1600) No that is wrong. It gives 3200 per revolution. Thus after ten revolutions the counter is 32000. That i...
by TrinhTUHH
Tue Jul 18, 2017 9:49 am
Forum: HATs and other add-ons
Topic: Gertbot
Replies: 146
Views: 52039

Re: Gertbot

Hi Gert, Thank you for your reply! By the way, when I built the GUI on Raspberry Pi 3 I always encountered this error: "gertbot.h: error: 'usleep' is not declared in this scope ...". So I just added this line " #include <unistd.h> " to the file "gertbot.h" and then remake and it worked. I don't know...
by TrinhTUHH
Mon Jul 17, 2017 1:41 pm
Forum: HATs and other add-ons
Topic: Gertbot
Replies: 146
Views: 52039

Re: Gertbot

What's exactly the position value? The position value read from "quad_read" command is said to be in a range of –4194303 to +4194303, but I don't really understand what it is. For example, I'm using a gearbox DC brushed motor with 64 CPR encoder and the gear ratio is 50:1, meaning the resolution is ...
by TrinhTUHH
Tue Jul 11, 2017 12:21 pm
Forum: HATs and other add-ons
Topic: Gertbot
Replies: 146
Views: 52039

Re: Gertbot

I think I have enabled the encoder but I can't work out how to read them. You must use the 'quad_read' command. See the example usage in the test_driver.py code. Where could I download the file "test_driver.py"? I could not find it on Gertbot's website. Is there any C or C++ version of it? Thanks!
by TrinhTUHH
Tue Jul 11, 2017 12:08 pm
Forum: HATs and other add-ons
Topic: Gertbot
Replies: 146
Views: 52039

Re: Gertbot

Hi Gert, I'm using Gertbot to control a DC brushed motor with Quadrature Encoder. It is stated in the Gertbot manual (page 44) that "Just as with the stepper count the three bytes make up a 24 bit signed number in the range of –4194303 to +4194303." But a 24-bit signed number should be in the range ...
by TrinhTUHH
Wed Jun 14, 2017 12:29 pm
Forum: HATs and other add-ons
Topic: gertbot request for enhancements
Replies: 16
Views: 7698

Re: gertbot request for enhancements

I want to connect a DC motor with built-in encoder to Gertbot but I don't know how. I don't see any instruction about this in their manual guide. Does anyone have experience on this?

Go to advanced search