Lithium battery and the ir remote


#1

hi all,

I have two questions:

  1. I wonder why is there any lithium battery with higher voltage which is comparable to 4 AA (~6.4 V)?
    the suggested lithium is 3.7 V only. I just want to speed up the mbot by reduce its mass.

  2. how can the servo be controlled by the ir remote? Provided that I’ve completed the scratch on controlling the servo, I want to control it by the remote, how can I load my program to the mbot so that the servo can be used by pressing D and E in the remote?

Many thanks
qwert


#2

Hi qwert,

Actually, 3.7V lithium is enough for mBot. According to my experience, I think it is better than some 4AA batteries

To control the servo through IR, you can use following program block:

Here is a link provide more info about mBot to you for reference: http://learn.makeblock.com/en/mbot/


#3

Thank you very much for your reply.

I’ve encountered urgent problem. How can I make line following by use the IR remote? I can only do it by execution from the computer, but when I use the remote, I set “when A is pressed, then run the line following program”, it doesnt work at all. Would you please kindly advise ? Thank you.

qwert


#4

Hi qwert,

Could you paste your program here?


#5


#6

many thanks.


#7

actually without the line “if ir remote A is pressed then”, it can follow the line well.
but our task is to use ir remote to let it line following.


#8

Hi qwert,

You may need set a variable for the line follower. Please try the example program below:


#9

Dear Sir/Madam,

thank you very much. I’ve tried your program, when i pressed A, the mbot just turning around itself with the left wheel as the centre of the circle. Would you please give me some advice?

qwert


#10

Hi qwert,

I have tested the program and it works properly.
You can add a mBot program head for above program and upload the program to the mBot, the you can test it refer to the program logic:

  1. Keep both the sensor1 and sensor 2 untouched to anything and press button A (value = 0), it will run forward.
  2. Keep touching the sensor 1 only with your finger (there is a blue led on beside the sensor 1), then press button A before you release your finger, (value=1), it will turn left.
  3. Keep touching the sensor 2 only with your finger (there is a blue led on beside the sensor 2), then press button A before you release your finger, (value=2), it will turn right.
  4. Keep touching the sensor 1 and sensor 2 with your finger (there are two blue leds on beside the sensor 1 and sensor 2), then press button A before you release your finger, (value=3), it will run backward.

#11