1 of 2

v07.15.2024

Advanced

Innovative Creations

Alvik Swarms and BLE

Can you get an Alvik talking to another device using BLE?

Think Like an Engineer:

What features will your robot(s) have and what materials will you use to make them?

Think like a programmer:

Can you make another device into a remote or steering wheel for the Alvik?

EXAMPLE IDEAS

Flip over for more details!

All Skills

2 of 2

CODE IT!

  • Your first step should be to connect up the driver and start it running

  • Now try to Yell and Sniff

CHALLENGE YOURSELF

Can you have one robot talk to three or four bots?

from arduino_alvik import ArduinoAlvik

alvik = ArduinoAlvik()

alvik.begin()

from BLE_lib import Yell, Sniff

c = Sniff()

c.scan(100)

time.sleep_ms(d)

c.stop_scan()

command = c.command

BLE COMMUNICATION

from BLE_lib import Yell

p = Yell()

p.advertise('info')

p.stop_advertising()

Load the BLE library into your Alvik

You can find the library that you will need on bottom of this notion page