top of page

BlueTooth

Questions

What do while(1) do? Does 1 mean serial is available? What is the difference between if and while?

if (ledCharacteristic.written() || buttonChanged) {

When buttonChanged is true, led must be updated, why does it check led written and buttonChanged? Aren't they equal?

  • There are two ways to change the led state, one is by the central, the other is by the button. Whenever buttonValue is changed, it updates the buttonCharacteristic and the ledCharacteristic. Then whenever buttonChanged or led rewritten, it checks if the ledCharacteristic, if there is a true value, turn on the led.

Midterm Project Idea

I want to make a device that represents someone's body movement remotely. So people can hug each other when apart. I came up with two ways to make this happen. The first one is to capture body movement with PoseNet and send it to Arduino in another room with Bluetooth. However, this method gets 2D data. It may have difficulties in determining the z-axis value. The other idea is to make a wearable suit on which there are devices that detect each other's relative position, so the device in another place can recreate the position and reproduce the gesture. 

IMG_8170.heic

Reading

bottom of page