The protyping tool "Protopie" has the wonderful feature to send messages from you app-prototype to the USB serial via a bridge app. This feature allows to build high fidelity IoT prototypes without the need to code any mobile application. With a massive push button and some actuators that I integrated into the housing, I tinkered around a little.
Quick example on how to receive sensor data though USB serial:
This is the function that sends the changing potentiometer value to your app prototype
In Protopie we can now use the receive trigger, type in the referencing message (in this case "POTI") and store the value (in this case numbers from 0 to 50 into a variable. Now we can use the potentiometer as a trigger for any event. In the example from the video I chained the values to the background color so it switches between black and green when the potentiometer is rotated.
Sending messages from Protopie basically works the same way around. Lets take the RGB-LED from the video as an example. In Protopie, we add a variable for the R, G and B value. Those values can be adjusted in 255 increments each. So if we want to use a vertical slider to change one color of the LED (like seen in the video), we need to chain the y values of the slider-button to numbers from 0 to 255 and store them in a variable. Now we can send the variable via "Android Broadcast" whenever a change is detected.
The coresponding arduino code looks like this. The loop function checks for new data. When there is a serial input from USB, it parses the messages in consumable chunks for the RGB LED function.
During the development of motorcycles, many hours of test rides are necessary to fix bugs and behaviour issues. The problem: it is quite difficult and dangerous for the test engineer to execute a streamlined road test while driving the machine, especially while wearing a helmet and gloves. For an early stage sales pitch at an automotive firm, I built a small demonstrator of how a test ride app might look and how to interact with it.
This prototype was again built without any Java programming involved, only with the help of protopie and some basic Arduino.
In my opinion? Definitely! In a newer project I went a step further and rewrote the Android bridge app, so it would skip the USB Serial and instead publish the data via MQTT. This way, it can interact with basically every IoT hardware. In my opinion there is now quicker/simpler and more cost-effective way to validate the user experience of an IoT application early on.
Check out the Rjiksstudio Ambient lamp I did for the Rijksstudio award to see how the Prototype turned out.