BeagleBoard/GSoC/2021 Proposal/bela on bbai
Student: Dhruva Gole
Mentors: Giulio Moro
GSoC: GSoC entry
This project is currently just a proposal.
Please complete the requirements listed on the ideas page and fill out this template.
School: Veermata Jijabai Technological Inst.
Primary language : English, Marathi, Hindi
Typical work hours: 10AM - 7PM Indian Standard Time
Previous GSoC participation: I find embedded and IOT pretty interesting, given I have experience with ESP32, SIMCOM, ESP8266, Atmega, and many other microcontroller devices and I think I will be able to excel in this project. This is the first time i am participating in GSoC.
About your project
Project name: Bela support for the BeagleBone AI
In 10-20 sentences, what are you making, for whom, why and with what technologies (programming languages, etc.)? (We are looking for open source SOFTWARE submissions.)
- What is Bela?
As give on the official website, Bela is a hardware and software system for creating beautiful interaction with sensors and sound. Bela consists of a Bela cape on top of a BeagleBone Black computer (uptil now).
Bela has a lot of analog and digital inputs and outputs for hooking up sensors and controlling other devices, and most importantly Bela has stereo audio i/o allowing you to interact with the world of sound.
Both Bela systems use the same Bela software. This is a Bela operating system that takes advantage of features of the BeagleBone computers and can achieve extremely fast audio and sensor processing times.
- Applications of Bela
Bela is ideal for creating anything interactive that uses sensors and sound. So far, Bela has been used to create:
- musical instruments
- kinetic sculptures
- wearable devices
- interactive sound installations
and many more applications that are listed here
- Why add support for BBAI?
The Beagle Black and PocketBeagle are getting more an more outdated by the day and soon newer boards with different and more efficient chips like the AM5X in the BBAI are coming up that need compatiblity with the Bela Software and Hardware. Delegating peripheral initialisation to the mcasp and spi drivers instead of doing it all by setting registers manually should hopefully make it more portable for porting to other boards in the family, present or future.
- Programming languages and tools to be used
C, PRU, dtb, uboot, make
|Mar 29||Applications open||Students register with GSoC, work on proposal with mentors.|
|Apr 13||Proposal complete||Submitted to https://summerofcode.withgoogle.com|
|May 17||Proposal accepted or rejected|
|Jun 07||Pre-work complete, Coding officially begins!||
(above ref. from here )
|Jun 17||Milestone #1, Introductory YouTube video|
|June 24||Milestone #2|
|June 30||Milestone #3|
|July 12 18:00 UTC||Milestone #4, Mentors and students can begin submitting Phase 1 evaluations|
|July 16 18:00 UTC||Phase 1 Evaluation deadline|
|July 23||Milestone #5|
|July 30||Milestone #6|
|Aug 06||Milestone #7|
|August 10||Milestone #8, Completion YouTube video|
|August 16 - 26 18:00 UTC||Final week: Students submit their final work product and their final mentor evaluation|
|August 23 - 30 18:00 UTC||Mentors submit final student evaluations|
Experience and approach
- I have used C++, C and Python programming languages over the past 3 years in a variety of projects involving embedded systems using the ESP32, Arduino UNO, ESP8266 and am also well-versed with freeRTOS.
- I have an aptitude for writing good reports and blogs, and have written a small blog on how to use a debugger.
- I recently did a project using ESP32, in which I used the DHT11 sensor to display humidity and temperature on a local HTML server . Other than that I have worked on developing hardware and making documentation for a 3 DOF arm based on an ESP32 custom board.
- I also interned at an embedded device startup where I
- Interfaced ADS1115 ADC with the ESP32 and used it to read battery voltage.
- Used UART for ESP32 and SIMCOM SIM 7600IE communication to gain LTE support.
- Published local sensor data to the cloud via LTE.
- I actively contribute to open source (most recently, I contributed to the ADS1115 library for ESP32 on the unclerus repo and can be seen here).
- Currently I am working on designing a Development board for the Raspberry Pico (RP2040) using KiCAD.
- I also do a lot of mini projects throughout the year, you can find my several more interesting projects at my github page
I believe that if I get stuck on my project and my mentor isn’t around, I will use the resources that are available to me. Some of those information portals are listed below.
- Derek Molly's beagle bone guide provides all the information needed for getting up and running with my beagle.
- Content on e-ALE.org is very useful for information that ranges from tutorials and walkthroughs to the level of very advanced stuff.
If successfully completed, this project will add support for the Bela cape + Xenomai + PRU on the BeagleBone AI.
as far as the porting to BBAI project is concerned, it's mostly a matter of getting the right pins enabled, running the PRU code with rproc, probably modify some constants in the PRU code accounting for any difference in SPI, MCASP and GPIO between AM3358 and AM5729 and testing that it all runs with a Xenomai kernel.