Search found 38 matches

by rankor
Sun Jun 14, 2015 10:02 pm
Forum: General Discussion and Questions
Topic: Resetting board will not run main.py
Replies: 7
Views: 2685

Resetting board will not run main.py

When I run the program below the new main.py is created and the old files are removed. A reset is made but the new main.py does not start to execute until after I manually press reset as well. Then the blue LED is turned on. it does not make a difference if I use pyb.reset or pyb.hard_reset. What am...
by rankor
Mon Jan 05, 2015 10:59 pm
Forum: General Discussion and Questions
Topic: Oneshot timer?
Replies: 3
Views: 2274

Re: Oneshot timer?

It didn't work for me to disable the callback in the callback, I'll post some code later. About tranforming a continous servo to one for angles, maybe it won't be perfect but setting the speed and rotating for a certain time will move the arm X degreees. That is not the same but if you save the curr...
by rankor
Mon Jan 05, 2015 5:02 am
Forum: General Discussion and Questions
Topic: Oneshot timer?
Replies: 3
Views: 2274

Oneshot timer?

It seems it is not possible to call timer.deinit() and timer.callback(None) from the callback itself? How can I make sure that once the callback has been called once, it will not get called again? Preferrably the timer should be completely disabled after the callback has been called. It would be hel...
by rankor
Fri Jan 02, 2015 3:15 am
Forum: General Discussion and Questions
Topic: SD card vs flash drive, speed?
Replies: 11
Views: 8534

SD card vs flash drive, speed?

Is it much slower to have your libraries on the SD card than on the flash drive?
by rankor
Sun Dec 28, 2014 6:21 pm
Forum: MicroPython pyboard
Topic: Good ways to connect battery to pyboard?
Replies: 3
Views: 1927

Re: Good ways to connect battery to pyboard?

What type of batttery are you using. There are many different types, and most of them have holders. Well I am not talking about the holder for the batteries but the connection to the board. For Arduiono there is a plug to connect the battery but the pyboard has no such thing. So what do you do? Sol...
by rankor
Sun Dec 28, 2014 5:20 pm
Forum: MicroPython pyboard
Topic: Good ways to connect battery to pyboard?
Replies: 3
Views: 1927

Good ways to connect battery to pyboard?

There are obviously several ways to connect batteries to the pyboard and what is better depends on your application. But it would be interesting to see what kind of solutions you have chosen and for what applications. I have a 2-wheel robot where I can screw on the battery holders on to the plate bu...
by rankor
Sun Dec 07, 2014 5:59 pm
Forum: General Discussion and Questions
Topic: How to get the Bluetooth module working (JYMCU...)?
Replies: 15
Views: 6668

Re: How to get the Bluetooth module working (JYMCU...)?

OK. I am so frustrated over here.

I just can't get AT commands to work. I can pair but my phone but not with my app so I can't send anything.

Is there a step after pairing, connecting?
by rankor
Sun Dec 07, 2014 3:36 pm
Forum: MicroPython pyboard
Topic: Bluetooth HC05
Replies: 15
Views: 8218

Re: Bluetooth HC05

So I have the Key connected to 3v3 and Vcc to Vin. The JYMCU boots into AT mode because the LED blinks slower. I have baud set at 38400 which it should have in this mode. I can't for the life of me figure out what I am doing wrong. I have Rx on the JYMCU connected to the Tx of the pyboard(Y9) and th...
by rankor
Sun Dec 07, 2014 1:39 pm
Forum: MicroPython pyboard
Topic: Bluetooth HC05
Replies: 15
Views: 8218

Re: Bluetooth HC05

I tried again:

I set the KEY pin high just as it boots.

JYMCU goes into AT mode (I can see from LED flashing).

However I cannot get a proper response from the JYMCU on my AT commands.

If I read the bus I get b'0', thats all.

If I send 'AT' I get no response.