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.
Reading
That ‘Internet of Things’ Thing states the idea that computers can be used to capture and interpret data without the aid of humanbeings. Meanwhile, the Rise of the machines: who is the ‘internet of things’ good for? proposed the opposite idea that even though machines can capture data better than human, it still relay on human to decide how to capture the data. And human's decision conceives political standings and affects the result.