Search found 9 matches

by mkingdom
Tue Mar 20, 2018 9:23 am
Forum: General Discussion and Questions
Topic: Help with sending serial via UART to Xbee
Replies: 5
Views: 4023

Re: Help with sending serial via UART to Xbee

They work fine for me and seem to be reliable. I haven't compared them against anything else though.
by mkingdom
Thu Mar 15, 2018 3:39 pm
Forum: General Discussion and Questions
Topic: Help with sending serial via UART to Xbee
Replies: 5
Views: 4023

Re: Help with sending serial via UART to Xbee

That's exactly the kind of help I need. Best practice!. Thanks Peter. :D
by mkingdom
Sun Mar 11, 2018 3:13 pm
Forum: General Discussion and Questions
Topic: Help with sending serial via UART to Xbee
Replies: 5
Views: 4023

Re: Help with sending serial via UART to Xbee

All fixed with following code: import pycom from machine import UART import time uart = UART(1, baudrate = 9600) pycom.heartbeat(False) pycom.rgbled(0x000000) on_frame = [b'\x7E', b'\x00', b'\x10', b'\x17', b'\x00', b'\x00', b'\x00',b'\x00', b'\x00', b'\x00', b'\x00', b'\xFF', b'\xFF', b'\xFF', b'\x...
by mkingdom
Sat Mar 10, 2018 9:40 am
Forum: General Discussion and Questions
Topic: Help with sending serial via UART to Xbee
Replies: 5
Views: 4023

Help with sending serial via UART to Xbee

I need help with sending a 20 byte buffer to an Xbee via UART. The project has been tested and works using an Arduino. The Coordinator Xbee is attached to a WiPy 3.0 via UART. I am able to read a 22 byte frame from a Router Xbee via the Coordinator using the following: import pycom from machine impo...
by mkingdom
Sun Feb 25, 2018 9:21 am
Forum: micro:bit boards
Topic: Help with PIR
Replies: 2
Views: 8704

Re: Help with PIR

Thanks. All fixed with:

pin0.set_pull(pin0.NO_PULL)

:D
by mkingdom
Sat Feb 24, 2018 12:47 pm
Forum: micro:bit boards
Topic: Help with PIR
Replies: 2
Views: 8704

Help with PIR

Using a Keyestudio PIR designed to operate at 3.3v http://wiki.keyestudio.com/index.php/Ks ... ion_Sensor

When triggered the signal goes high and is outputting 2.9v. I'm using pin0.read.digital and I'm not getting an on reading when it goes to 2.9v. Is this normal?
by mkingdom
Mon May 01, 2017 10:47 am
Forum: micro:bit boards
Topic: UART on Micro:Bit
Replies: 6
Views: 9186

Re: UART on Micro:Bit

Thanks. This works, with one small problem. I am only receiving 'buffer' contents minus the last two characters. In this case I get 'Hello Wor' Can't understand why I'm losing the last two characters. The good news is that the microbit reconnects the usb! Code follows: from microbit import * buffer ...
by mkingdom
Sun Apr 30, 2017 8:31 pm
Forum: micro:bit boards
Topic: UART on Micro:Bit
Replies: 6
Views: 9186

Re: UART on Micro:Bit

Thanks both. Another question. Do I need to disconnect the usb to computer cable from the Micro:bit for the UART to work?
by mkingdom
Sun Apr 30, 2017 2:38 pm
Forum: micro:bit boards
Topic: UART on Micro:Bit
Replies: 6
Views: 9186

UART on Micro:Bit

I have just started with my Micro:Bit having used Arduino previously. I am trying to connect an Xbee wireless module to the Micro:bit (I've used them successfully before with Arduino). I'm using the instructions in the BBC micro:bit MicroPython Documentation, Release 0.0.1. Section 2.1.8 UART. Pin0 ...