[Part 9] - Petrock - A $50 hackable edge device that's friends with Bedrock
Not an official Amazon product
Shreyas Subramanian
Amazon Employee
Published Aug 25, 2024
Do you remember the Deeplens device from AWS? Starting January 31, 2024, customers no longer were able to access AWS DeepLens through the AWS management console, manage DeepLens devices, or access any projects you have created. Some of us have spent way too much time with Deeplens to not miss it :D
Over the weekend I worked with the "CoreS3", the newest member of the M5Stack Core series, designed to make tech projects easier and more fun. It’s powered by a fast dual-core processor and comes with built-in Wi-Fi, so you can connect to the internet without any hassle. The 2.0-inch touchscreen is easy to use, and with a built-in camera and sensors, it’s perfect for creating smart home gadgets, IoT projects, or just tinkering with new ideas. Whether you're a hobbyist or a pro, CoreS3’s simple setup and flexible design make it a great choice for all kinds of tech adventures.
What's great about the CoreS3 is that it comes with its own visual/code webapp, that syncs with device through a (magnetic) USB cable). A (micro)Python program defines everything from the UI/UX and core functionality. The device has its own battery and can run on the edge, but can also connect via WiFi or a hotspot for doing API calls.
Say hello to Petrock here https://giphy.com/gifs/XnGBVl1oHrY4iKX7yz
The following functionality comes with < 300 lines of Python code:
- AWS orange background with white curious blinking eyes that randomly look around
- A secret button (tapping the sound mic opens up the context menu)
- Clicking the center button retrieves the open-high-low-close values for stocks in my portfolio (here, Amazon). This is done using the finnhub.io API and locally store API keys
- Clicking the camera icon opens up the front camera, sends the image to Anthropic Claude Sonnet on Amazon Bedrock which returns an accurate, less-than-10-word description of what it sees:
Here's another one:
Once you are done with the live debugging via the USB C cable, you can "burn" the program to the device with a click of a button and use it without the tether.
Potential applications of this is to prototype security applications, for detecting manufacturing defects, portable weather station, stock monitor, or like Petrock, a personal assistant - and all of these applications as you can imagine can be made possible or enhanced by using the right models available on Amazon Bedrock.
The code for this will be open sourced, but if you are curious to try it out before that, do reach out!
Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.