Cansat Wireless Transmission Proposal
Cansat Wireless Transmission Proposal
Components:
Using XBee: (It looks like this )
Full name: Zigbee XBee Module S2C 802.15.4 2mV with Wire Antenna XB24CZ7WIT-004
STATSSS!!
XBee USB Adapter (UART communication board) (It looks like this )
Components Required:
XBee Module x2
XBee Adapter x2
Download link:
5. Press next
6. Press finish
15. Repeat all the steps for the second XBee, but for step 12, change to End Device
instead, make sure both XBee have the same PAN ID, also for steps 13 and 14,
Change AP API Enable to “API Enabled with escaping [2]” and also change JV
channel verification to “Enabled[1]”
I don’t think we will need a second Raspberry Pico for this, though many examples
online point towards the XBee having to be connected to a separate Raspberry Pico, I
somehow don’t think that would be necessary as little computation is required on the
receiving end. Also the receiving XBee will only be required to be connected to the
computer for it to work I think
Link
SD Card should be formatted with the FAT32 file system to be compatible with uos
module in MicroPython
Steps:
VCC: 3.3V
GND: GND
import machine
import utime
import dht
import sdcard
import uos
from machine import UART
# Initialise SD card
sd = sdcard.SDCard(spi, cs)
# Mount filesystem
vfs = uos.VfsFat(sd)
uos.mount(vfs, "/sd")
utime.sleep(2)
first = True
while True:
read_and_send()
import machine
import utime
import dht
import sdcard
import uos
from machine import UART
# Initialise SD card
sd = sdcard.SDCard(spi, cs)
# Mount filesystem
vfs = uos.VfsFat(sd)
uos.mount(vfs, "/sd")
except OSError as e:
print("Failed to read from sensor")
utime.sleep(2)
first = True
while True:
read_and_send()
hum_start = message.find('H:') + 2
hum_end = message.find('>', hum_start)
hum = float(message[hum_start:hum_end])
while True:
receive_and_display()
utime.sleep(1) # Small delay to prevent flooding the output
view_sdcard()
Press here to create a new frame and set the destination address to the MAC address of
the receiver (Coordinator). Also press this button so that the icon looks like this
When all that’s done, the data “should be” able to be sent remotely.
References:
Here’s when you realise most of the stuff on here is copied word to word from the
following websites:
https://how2electronics.com/interfacing-xbee-module-with-
raspberry-pi-pico-micropython/
https://circuitdigest.com/microcontroller-projects/raspberry-
pi-xbee-module-interfacing
https://learn.sparkfun.com/tutorials/exploring-xbees-and-xctu/all
https://medium.com/@marcj_40686/using-an-sd-card-with-the-raspberry-pi-pico-for-
data-storage-in-micropython-da9c8264c04c
https://www.youtube.com/watch?v=FGmQHSfUPBU
https://www.youtube.com/watch?v=crjv9021Dxk
https://www.youtube.com/watch?v=mIBq0KLqWLA
Mysterious Link