Search found 9 matches

by francois69
Sat Oct 05, 2019 11:56 pm
Forum: micro:bit boards
Topic: I2C , Robit Elecfreaks
Replies: 13
Views: 1833

Re: I2C , Robit Elecfreaks

thank you i have find the solution. Indeed each motor is controled by 2 groups of 4 registers. I show the program : from microbit import * print(i2c.scan()) sleep(20) i2c.write(64, b'\x00\x20') # Mode1: bit5=1(auto increment enable) # motor 1 (x06 and x0A), duty cycle = 50%, start on = 0 start off= ...
by francois69
Sat Oct 05, 2019 5:06 pm
Forum: micro:bit boards
Topic: I2C , Robit Elecfreaks
Replies: 13
Views: 1833

Re: I2C , Robit Elecfreaks

No i have not any schematics. I have wrote to Electfreaks but they never answer.
I just hope that somebody who can understant the program:
https://github.com/Tinkertanker/pxt-rob ... r/robit.ts
Could understant how i can do.
by francois69
Fri Oct 04, 2019 7:14 am
Forum: micro:bit boards
Topic: I2C , Robit Elecfreaks
Replies: 13
Views: 1833

Re: I2C , Robit Elecfreaks

would anyone have an idea ? :roll:
by francois69
Sun Sep 29, 2019 7:08 am
Forum: micro:bit boards
Topic: I2C , Robit Elecfreaks
Replies: 13
Views: 1833

Re: I2C , Robit Elecfreaks

Hello, i am using a board : https://www.elecfreaks.com/learn-en/microbitKit/robit_smart_car/robit_smart_car.html#file inside there is drivers. I have tried to program with makecode https://makecode.microbit.org/v0/77088-29689-09763-13941 and the wheels turn With makecode the wheels can turn foward o...
by francois69
Sat Sep 28, 2019 10:37 pm
Forum: micro:bit boards
Topic: I2C , Robit Elecfreaks
Replies: 13
Views: 1833

Re: I2C , Robit Elecfreaks

thank you Dhylands for your answer i can finally write and read inside the register : my program : from microbit import * print(i2c.scan()) sleep(20) # Mode1 : bit5=1 (auto increment enable) # LED0_ON_L + LED0_ON_H = 7FE (2046) LED0_OFF_L + LED0_OFF_H = 7FE (2046) # duty cycle = 50% i2c.write(64, b'...
by francois69
Fri Sep 27, 2019 10:11 pm
Forum: micro:bit boards
Topic: I2C , Robit Elecfreaks
Replies: 13
Views: 1833

Re: I2C , Robit Elecfreaks

Can you help me please ? :D
by francois69
Wed Sep 25, 2019 7:58 am
Forum: micro:bit boards
Topic: I2C , Robit Elecfreaks
Replies: 13
Views: 1833

Re: I2C , Robit Elecfreaks

Hello, I think i have an other problem : if i write inside the register and after i read the same register i don't find what i have write : I write in register 0x06 and i try to read the 16 registers since the beginning : from microbit import * sleep(200) i2c.write(64, b'\0x06\0x01\02\03') sleep(1) ...
by francois69
Tue Sep 24, 2019 11:29 pm
Forum: micro:bit boards
Topic: I2C , Robit Elecfreaks
Replies: 13
Views: 1833

Re: I2C , Robit Elecfreaks

Thanks for your answer. I try this code : from microbit import * sleep(200) i2c.write(64, b'\0x00\0x00') # Mode1= 0x00 sleep(1) i2c.write(64, b'\0x06\0x00') # Channel 0(motors) off LED0_ON_L=0 i2c.write(64, b'\0x07\0x00') # Channel 0(motors) off LED0_ON_H=0 i2c.write(64, b'\0x08\0x00') # Channel 0(m...
by francois69
Mon Sep 23, 2019 5:10 pm
Forum: micro:bit boards
Topic: I2C , Robit Elecfreaks
Replies: 13
Views: 1833

I2C , Robit Elecfreaks

Hi, I am a french teacher and i bought a Micro:bit and a board robit V2.0. It is a board for m-bot https://www.elecfreaks.com/learn-en/microbitKit/robit_smart_car/robit_smart_car.html#file I had to program with Python. I try to power the 2 motors, they are driving by a I2C. I find informations on Gi...