UART on Micro:Bit
Posted: Sun Apr 30, 2017 2:38 pm
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 = Tx and Pin1 = RX as per instructions.
The wireless module is configured and tested working to pass data straight through to another Xbee attached to my computer.
When I execute code, the Xbee 'data in' led is not flickering. It appears the Microbit is not communicating through Pin0.
I've tested the connections and Pin0 and 1 are working with write.digital.
My code follows:
from microbit import *
buffer = 'Hello World'
uart.init()
while True:
uart.write(buffer)
sleep(2000)
Any thoughts?
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 = Tx and Pin1 = RX as per instructions.
The wireless module is configured and tested working to pass data straight through to another Xbee attached to my computer.
When I execute code, the Xbee 'data in' led is not flickering. It appears the Microbit is not communicating through Pin0.
I've tested the connections and Pin0 and 1 are working with write.digital.
My code follows:
from microbit import *
buffer = 'Hello World'
uart.init()
while True:
uart.write(buffer)
sleep(2000)
Any thoughts?