Search found 10 matches

by NicoleN
Sun May 22, 2016 7:13 am
Forum: Other Boards
Topic: BLueTooth interrupt
Replies: 8
Views: 7563

Re: BLueTooth interrupt

There was an error in the docs indicating any() returned a boolean, corrected recently. I also ran into the error that there is no pin named pyb.Pin.board.PA2 I use a 2015/10 firmware version. I have recently tried to update but i had problems with pin names etc, so i downgraded again. In my board,...
by NicoleN
Wed May 18, 2016 5:07 am
Forum: Other Boards
Topic: BLueTooth interrupt
Replies: 8
Views: 7563

Re: BLueTooth interrupt

Well, i have read the documentation and tried to fix this in many different ways (using bytearray / readinto() ) but it still doesn't work :cry: from pyb import UART BT = UART(4, 9600) BT.init(9600, bits=8, parity=None, stop=1) def speed(speed_percent): pulses.channel(3, pyb.Timer.PWM, pin=pyb.Pin.b...
by NicoleN
Fri Dec 04, 2015 2:23 pm
Forum: Other Boards
Topic: BLueTooth interrupt
Replies: 8
Views: 7563

BLueTooth interrupt

I am getting MemoryError when trying to control my car's speed via Bluetooth :cry: pulses = pyb.Timer(2, freq=1000) pulses.channel(3, pyb.Timer.PWM, pin=pyb.Pin.board.PA2, pulse_width_percent=100) pulses.channel(4, pyb.Timer.PWM, pin=pyb.Pin.board.PA3, pulse_width_percent=100) def speed_adj(R_mot_pe...
by NicoleN
Fri Nov 27, 2015 9:56 am
Forum: Other Boards
Topic: mode [ON/OFF]
Replies: 5
Views: 4968

Re: mode [ON/OFF]

that is correct. Thanks, I ll try to fix it
by NicoleN
Fri Nov 27, 2015 8:58 am
Forum: Other Boards
Topic: mode [ON/OFF]
Replies: 5
Views: 4968

Re: mode [ON/OFF]

mode_1 = False def mode1(): execfile('/flash/mode1.py') /flash/mode1.py: if mode_1 == True: mode_1 = False pin1.low() execfile('/flash/main.py') else: mode_1 = True def do_stuff(): pin1.high() while True: if BT.any() == True: execfile('/flash/main.py') else: do_stuff() mode1() -> pin ON mode1() -> ...
by NicoleN
Fri Nov 27, 2015 8:05 am
Forum: Other Boards
Topic: mode [ON/OFF]
Replies: 5
Views: 4968

mode [ON/OFF]

startup value: mode = False

Code: Select all

if mode == False:
    mode = True
    do something
else:
    mode = False
    do something else
This works up to 10 times, then:

Code: Select all

RuntimeError: maximum recursion depth exceeded
any idea how to fix it?
by NicoleN
Wed Oct 21, 2015 5:38 pm
Forum: General Discussion and Questions
Topic: Choosing a board
Replies: 5
Views: 5043

Re: Choosing a board

Thanks for all of these info, pc MicroPython has been designed to minimise RAM usage. The bottom line is that you can write quite large applications. Thats great. I think this RAM is more than enough for my application. After some thoughts, i ordered the STM32F4DISC so i can have a backup plan if i ...
by NicoleN
Fri Oct 09, 2015 3:19 am
Forum: MicroPython pyboard
Topic: BlueTooth module for pyboard
Replies: 0
Views: 5729

BlueTooth module for pyboard

I'd like to get the pyboard but i need bluetooth module for pyboard too.
With JYMCUHC05v1.06 being out of stock, i found this one: MOD-nRF8001

Anyone knows if that is compatible with the pyboard?
by NicoleN
Thu Oct 08, 2015 6:38 am
Forum: General Discussion and Questions
Topic: Choosing a board
Replies: 5
Views: 5043

Re: Choosing a board

without knowing more about what you're building it's hard to be definitive. Its still an open project. I am thinking of a simple car with 2 servo for the movement , 1 servo for the turn. Manually Controlled via BlueTooth, maybe with an android application. Thats the minimum requirements. Could add ...
by NicoleN
Wed Oct 07, 2015 4:14 am
Forum: General Discussion and Questions
Topic: Choosing a board
Replies: 5
Views: 5043

Choosing a board

Hi community! I am new here, new in programming and about to start a project (a Bluetooth controlled robot). I need to choose a board for that. My optrions are: STM32-103STK , STM32-405STK and the pyboard . Should i do that on C or microPython? Can i run MicroPython on all of them? Any info or tips ...