by rubber_duck · 9y ago · 0 comments
Devboards I see online with a high powered ARM board are in 150-200$ range for the devboard without camera/sensors and with stuff I don't need (network ports, display ports, etc).
Then I look at my 150$ Chinese smartphone (Xaomi RedMi Note 3 Pro) - it has Snapdragon 652 - Quad Core 64 bit CPU, OpenCL 2 capable GPU, 3GB ram, 16 GB storage, 13MP and 5MP cameras attached, gyro on board and 4G/WiFi/GPS, 4kMAh battery. The specs alone are better then the best devboard I found.
So I'm thinking if I can get it to boot without screen I could throw away the case and the screen, hook up GPIO trough USB for 10$ and get a better dev board than I would for 200$ with all the sensors and IO and a battery on top ?
I wonder how much it would cost me if I could just buy the parts on these markets and not have to disassemble a complete phone.
I see it for $75 at one of my usual suppliers.
It has a snapdragon 410 - 1.2Ghz, 1GB RAM, Bluetooth, WiFi, etc.
However, both of these are probably huge overkill for a quadcopter.
The problem you face is twofold:
* The quadcopter needs to react in real time, so you need a real time OS.
* Machine learning can use a huge amount of memory.
The usual way to solve this, is a simplified onboard system. Crash prevention and the like. Probably an Arduino or ESP8266.
Then, that communicates with a ML system on a laptop or the like, which does the hard work.
My idea was have something like that hooked in to the bigger board via USB - the Android is creating flight plans and the micro controller is just managing the motors and following the plans it receives.
snapdragon 410 seems like it doesn't have OpenCL 2 (shared memory access ?)
For the other board, I probably wouldn't use USB, but a serial or pin connection could be faster.
Broadcom recently released the spec sheet for the Raspberry Pi's GPU, and people have been doing good work with that.
Edit: Snapdragon 410 has official support only for OpenCL 1.1
I was just thinking USB since it's guaranteed to be there and should be simple to program on android if I chose to go down the "disassemble a phone for parts" route.
Even tough it doesn't have OpenCL 2 capable GPU it has 10 cores - but something on the higher end seems very expensive and cheap boards are generation old chips with Mali450 GPUs or PI level HW.
It seems cheaper to get a cheap chinese phone with top level chipset and all the sensors and dissasemble it - maybe get one with a broken screen - although it's a gamble that the rest works.
[1] getchip.com
The parts aren't really available on the open market, but your best bet might be to get a secondhand phone with a broken screen.
There are also people designing dedicated "arduinocopter" boards and suchlike, which have a microcontroller, motor controllers, and IMU all on board.
Yeah I thought about this, will fish around but I'm afraid that if the screen is broken the rest might be damaged too. But even disassembling my phone doesn't seem too expensive if everything works out as expected.