Android + Bluetooth +4x4 Robot (Drone) - G1 Android Development

One of my last projects was a 4x4 differential drone, built from scratch, remotely controlled via Bluetooth using an Android smartphone.
Schematics / demo video here: http://www.pocketmagic.net/?p=1398
Besides ultrasonic sensors, the robot is about to be equipped with a homemade geiger counter sensor to detect "exotic" environment parameters
like the dangerous ionizing radiation. There are quite a few possibilities since the robot has an ATmega microcontroller that can easily
support additional sensors.
The data is sent back to the Android device, via bluetooth. More work is required on the software, hope I'll get some spare time for that, soon.
Direct youtube video: http://www.youtube.com/watch?v=O2gg1P7iSDA

Related

Hacking MTP or MSP to spoof file-system for USB Audio out

I'm in the process of learning the Android HW & SW architecture. I'm trying to think of some interesting projects that I can mess around with to help me learn. (I'm experienced in electronics, software and firmware dev.)
Anyway, one thing I've been thinking about is the need for real-time audio over USB using the current defacto standards; MTP and Mass-Storage. The real target audience here is people who have a "USB enabled" car stereo.
My idea:
Implement some layer of abstraction between the protocol on the Android device and the file system that it exposes to the USB host. This would really be a "Fake file-system" that acts as a WAV buffer for the Android audio out. This would provide some amount of universality, because almost all of those devices support WAV. (Plus, it would otherwise potentially require trans-coding...)
I know that capturing the audio outputs presents a challenge. Perhaps the Bluetooth Audio PCM stream could be captured and converted to wave by creating a "virtual Bluetooth headset" to pair to. (Not optimal...but an option)
To me the biggest challenge seems to be the USB interface. I've designed USB hardware before and realize that a LOT of the low-level protocol stuff is implemented in hardware. In that case, it might be almost impossible to attach that USB subsystem to some "virtual FAT partition". (which would be required for USB Mass Storage)
In the case of MPT, it seems like you might be able to "trick" the host into playing a 4GB WAV file (4G is the max-size in MTP) that is being fed by android in the background. There might be a hiccup every x Minutes once you reach EOF, but it would still be usable as a proof-of-concept.
I know this is a pretty expansive topic that involves low-level specifics for several protocols. I'm just trying to figure out if there are any real "show-stoppers" that would make something like this impossible.(I'm under no impression that it could just be an App. I'm pretty much under the assumption that this would require a custom ROM at the least.)

Any driver to control the MHL from the PC?

Sorry for my English .. Hello everyone first of all.
I have a HTC Sensation and I like to control from a touch screen, using this connector MHL, I read that in the Ice Cream Sandwich version that I have installed, you can now control is provided through an USB port.
The truth did not know very well where to place this post, but I think the media is the main function and see if you're lucky, the idea is to propose or if anyone knows, the android can control from your PC, as the case Samsung TVs that recognize the application MHL Device Anynet + (post link). The idea is to connect mobile phone to a computer with a touch screen and control it from the screen contenplando the quality of this type of connection and future applications, CarPC, game systems, internet browsers.
So far the closest I've seen is through a remote program or Android QtADB Commander, but they perform a virtualization and graphics functions are very limited (videos, photos, games, etc. ..).
An interesting idea would be that an application for Android was able to control the touch screen driver THROUGH USB host our phones, this topic is more interesting and juicy indeed already been mentioned in some places but unfortunately I guess we have to wait to get the ICS to Partin, do not you think?.
For those interested in the latter is here.
Greetings.

Note 3 IR Blaster Applications

I think that one of the most underrated aspects of the note 3 is the IR Blaster. Most phones do not come with them anymore.
Currently I use an application called IR Remote that allows me to control my TV's. I also have the full version of Unified Remote, which supports custom IR commands, but apparently the Note 3 does not support learning IR codes (which is what Unified Remote requires apparently).
My question is: What applications/devices do you use for your IR blaster? Have you done custom IR codes?
Scruffythej said:
I think that one of the most underrated aspects of the note 3 is the IR Blaster. Most phones do not come with them anymore.
Currently I use an application called IR Remote that allows me to control my TV's. I also have the full version of Unified Remote, which supports custom IR commands, but apparently the Note 3 does not support learning IR codes (which is what Unified Remote requires apparently).
My question is: What applications/devices do you use for your IR blaster? Have you done custom IR codes?
Click to expand...
Click to collapse
Peel smart remote.
Sent from my SM-G925F
AnyMote Smart Remote is a really good anything remote. Peel Remote is good for having a decent remote and TV Guide, all-in-one. However, I haven't ever toyed around with anything to "learn" codes, because of the funny hardware that's involved and due to lack of funds.
Sent from my SM-G935F using Tapatalk
The personal best for me is SURE remote - it has brands that ive never seen before and they work (i know becoause im playing with it when i go to a tech store full of tvs and many other electronics)
KeuwlSoft - Create your own Universal Remote
Wow -- Now I know what I will do with my Note 3 after I replace it soon. I know that this app will work, since I've used many of their free APP products in the past, which are phenomenally great, and also very comprehensive, if somewhat complex. I'm just now getting their "Remote Creator" app from Google Play, (since I can't post the link yet-- MODS ?? ). Or go to their website at Keuwl dot *** which I recommend, to see all their cool tools. They also have a lot of hardware projects to proto creating both apps and hardware.
I know it will be great. Why? I just used their "Frequency Generator" App to tune "BT earbuds", which are really hearing aids. Turns out, they support going down to below 10 Hz! Their specs say only > 100 Hz, but that is only what it will amplify when using them as HA's. BT music capability goes down below 10 HZ, just from my Note 3. As a reference, here's the lowest sources, where human ears can more "feel the bass, but can't hear it" as well:
Pipe Organ = 18 Hz
Piano = 25 Hz
Guitar (Bass)= 28 Hz
Drum (Bass) = 75-35 Hz w/harmonics
If you are planning on picking anything for remote sound, I'd suggest using their "Frequency Generator" app to test and tune your hardware / ear combinations. Using music itself to tune any equalizer, is more frustrating and not reliable at all.
Peel Remote for me! I have tried others, but I have a TiVo/XBoX/Receiver/TV combo and love being able to program in the custom funcitons. Bu the advertising and buggy interruptions ruin much of it. To that end, I just did a TB of it and when I tries to "update" or take over my lock screen I can just "restore" the previous version.
ASmart remote works as well to set up room combinations etc. I use that if I am at work and want to control the office tv's
Anymote wins hands down, widgets, automation, editable, just brilliant.

Dev for Hire?

Hi, I hope I am not violating forum rules by posting this.
I am interested in hiring a developer to create a rom for a project related to a specific series of digital audio players that are all based on relatively the same hardware and software platform. The model numbers are Pioneer XDP-100R, XDP-300R, Onkyo DP-X1 and DP-X1a. These are all running an AOSP 5.1.1 and carry very similar hardware. They are made in the same plant, by the same parent company.
The main use case for a new ROM is that these devices all include specialty audio hardware that is currently only utilized when using the bundled music player. 3rd party music players, and streaming services like Spotify and Tidal, route audio through the integrated DAC on the Snapdragon chip. It would be preferable to use the higher quality ESS Sabre DAC(s) that is utilized by the onboard music player. I have no clue at how involved this would be, but LG has done it with the V10/V20.
Would also be interested in possibly incorporating other features, most likely based on disabling services that are not required for playing music. The idea is lean and light.
If you have any insight on what would be involved in a system level change to route audio through the Sabre chip please feel free to post here. If you are interested in working on the project, please PM me.
Thanks
YES!!!!
YES!!!!
I am absolutly interested in this !!!
Im willing to contribute $ as well
A Full featured audio oriented custom rom for my xdp-300r b personally that sounds like a dream come true
Currently i use (Athame) to download Tidal songs/playlists/Albums from my personal account
theres options in settings for MASTER quality audio files,,
Simply copy paste web address of the page you want to rip music from (sharebutton:url)
into athame and it will compile and click download
easy and simple and fast....
I just hosted it incase you or anyone wants access let me know ill send a download link
PCLOUD LINK BY REQUEST ONLY
MAKE SURE TO CONFIGURE SETTING FOR USER ACCOUNT
its simple just cut paste audio tracks onto SD card
use the integrated music player and enjoy your hifi dac in all its glory
I NEVER USE XDAP THE TRANSFER WILL FAIL!!!
also heres a different idea i recently had------->
although just to let you know, porting music apps through kodi is a much more user friendly approach......
on kodi just do some research and find the audio plugins you need and install them through repo's
HERES MY FAV BUILD REPO
http:angel:://kbully.:angel:esy.:angel:es
im thinking that its possible to design an APK for android that can monitor apps and create a profile for how they decode and encode data for audio and video data,,,,
a simple plugin and widget for android that intercepts and reroutes all app audio transmission through the integrated audio hardware thus your apps like Tidal,, even netflix and youtube would not have to be modified, the audio transmission paths would simply be rerouted as if it were playing through the integrated plugin's
so instead of modifying hardware plugins and to avoid modifications to copyrighted app's
simply create a middle man diskjocky to intercept and redistribute data transmissions by lane switching and protocol interception redirection
this idea is forked from an idea i had for a bluetooth app for transmitting audio to many different speakers at once sort of like (Airfoil) either by modulating transmission across many transmission lanes at once by splitting them into thousands of bits and cloning data transmission like dealing identical cards to all players very fast like refresh rates faster than the ear can distinguish so that every speaker system gets the same audio transmission at the same time and in sync,,,,
possibly helper plugins that you install on all your devices with bluetooth hardware,,, so that when not in use they could maintain a shared connection to the host player for sharing the BT hardware so that audio could be synced and distributed to different recievers locally at a decent sync level offloading cpu needs to devices that are not being used by owners,,,,
that is also forked from an idea i had about an open source application that people would use for extreme data crunching needs by utilizing unused hardware from other users globally, like a Social Global Cloud Computing Project the data is so small individually that it is secure in the nature of data size alone thus never needing additional security updates all data would flow through micro VPN's
there are times processing power is needed and others simply have a computer or mobile device running and not in use, or not completing processing tasks of significant hardware needs,,,, imagine if anyone on any device could instantly process complex operations by sharing unused power????
at the rate network speeds are increasing cloud computing is inevitable and that will be the end to custom roms and os development,,, how do you flash a mobile device that is only a peripheral device with streaming capabilities,,, the OS firmware would be operated virtually on servers and physical user hardware would become the past............
anyways i totally had szhit to do and got stuck on here for over 2 hours typing this up loll lmao
to infinity and beyond fellow human
~Killacam~
"don't wash their mouths with soap assuming it will clean their mistakes,
expose their mouths to Dirt so that they may taste and experience their faults"
I've rooted XDP-300R and just ported TWRP over to it tonight. Seems to be working! I've already had a working build.prop mod to skip android encoding and push directly to DAC. But this hopefully allows more work without fear of bricks
https://cdn.head-fi.org/a/10245543_thumb.jpg

Huawei watch 2 as an open source Linux AsteroidOS sports watch

For an open source Linux sports watch with external BLE sensors, GPS would be very helpful. Is there an AsteroidOS watch which supports GPS? What about the Huawei 2 GPS watch?​
Asteroid IRC chat:
PeterGammaFor an open source Linux sports watch with external BLE sensors, additionally GPS would be very helpful. The Kingwear KW88 Pro has GPS, but as far as I know, the Bluetooth stack is a mess. Is there another AsteroidOS watch which supports GPS?20:02:09AsteroidBot[asteroid-btsyncd] MagneFire synchronized Pull Request #19 BatteryService: Use systemsettings for battery information. (gatesgarth_v2 -> master): https://git.io/JYduj22:35:01MagneFirePeterGamma: There are some other watches that have GPS (The Sony Smartwatch 3 and Huawei Watch 2 come to mind) but it’s not supported from AsteroidOS just yet.22:55:05PeterGammaMagneFire: Thanks, MagneFire. I am currently using a Garmin watch with a BLE footpod, and I don t use GPS at all, since a foot pod is very accurate, and battery life with GPS is shorter. But for an open source sports watch to be taken serious by athletes, GPS is required. I saw some developement work for the Huawei Watch 2 on the AsteroidOS GITHUB which looked great. What do you think. Is GPS for the Huawei Watch 2 far away to be developed?23:15:02MagneFirePeterGamma: I didn’t have a look into this so will probably take some time Though I did get GPS to at least scan on the Sony smartwatch 3, but that’s where it stopped (couldn’t get a GPS location fix)
Source: AsteroidOS IRC Logs 13.4.2021
Good news: GPS works too now on the Huawei Watch 2
MagneFire in the AsteroidOS IRC chat: “Ok so GPS works too now on the Huawei Watch 2, but it does not stop even after closing the asteroid-gps-test app. Is this a known issue for other watches?”GPS works too now on the Huawei Watch 2, that is good news. Maybe an athlete with good coding skills knows how to solve the issue? GPS makes the Huawei Watch 2 interesting to be used as a sports watch (source: AsteroidOS IRC Logs 14.4.2021)
Which is the optimal watch to make an open source sports watch out of it?
I could find the Huawei watch 2 second hand. But where can the Huawei watch 2 4g be found? To access sensor data from Garmin watches is difficult. They have their proprietary .fit file format. ANT+ sensors need special hardware, for instance ANT+ sticks, and it is hard do find another way than synchroniz sports sensor data to Garmin connect. Real-time processing of sports sensor data is even more difficult. Was this was the goal of the companies who developed these products? Many people tried to solve this problem. I made a list of these projects on my Github page:
https://github.com/PeterGamma/Live-stream-of-ANT-plus-and-BLE-sensor-data
Most of these project consist only of a backbone. From there it is possible to develop a project of your choice.
Linux AsteroidOS sports watch on DC Rainmakers blog?
DC Rainmaker, the blog Ray Maker that reviews technology used for runners, cyclists, and triathletes, deleted my link to my AsteroidOS watch blog, or at least I cannot find it anymore. I put I link on his review about peloton bike computers to my AsteroidOS watch blog:
https://www.dcrainmaker.com/2021/02/peloton-bike-plus-in-depth-review.html
I did not know where else to put it. But I can t find the link anymore. Did Ray delete the link?. It is time to build an AsteroidOS sports watch, so that Ray can review the watch. Then, we can discuss with Ray on his blog about the watch.
Peter Gamma 17.4.2021 21:04
AsteroidOS sports watch with BLEHeartRateLogger.py?​
I suggest to start building an AsteroidOS sports with a heart rate chest strap monitor like the Polar H7 or the Polar H10 and GPS. That is all which is needed for a fully funcional sports watch. The first Garmin watches had as far as I know only a heart rate chest strap and a foot pod. Then, they had a major break trough with GPS watches. Which GPS and a chest strap, we can try again to sell the watch to DC Rainmaker. DC Rainmaker has he has a huge impact on athletes. The easiest way I could find to do this is to integrate the BLEHeartRateLogger app into an AsteroidOS watch.
https://github.com/fg1/BLEHeartRateLogger
BLEHeartRateLogger.py is a Bluetooth Low-Energy (BLE) Heart Rate Monitor (HRM) data logger written in Python for Linux. With this tool you can log your heart rate and heart rate variability (RR) during exercise, sleep or whatever comes to mind.
Polar has a Polar SDK
The Polar Sensor Logger app with MQTT support for a real-time stream to Matlab, Python, Influx Database, etc.:
https://play.google.com/store/apps/details?id=com.j_ware.polarsensorlogger&gl=CH
is also based on the Polar SDK, and I suppose also the BLEHeartRateLogger app. Jukka Happonen, Senior Specialist at Polar Electro Oy Research Center made a very helpful contribution with his Polar Sensor Logger app, which can record many parameters from Polar sensors to .txt files, and can stream sensor data over MQTT to Influx Data Base. The Polar Sensor Logger app seems not to be an offical Polar app, but is really an easy and contemporary solution for sensor data streaming. But unfortunately, the Polar Sensor Logger app is not open source.
Peter Gamma 18.4.2021 9:02
Shellscripts and python scripts already run on AsteroidOS (personal communication jrt, AsteroidOS IRC chat)
18.4.2021 09:32:18
jrt: Hi, I’m not entirely sure what you want to archive. Shellscripts and python scripts already run on AsteroidOS. There is a python 3 package available in the repository.
18.4.2021 15:54:12
PeterGamma: Thanks, jrt
Peter Gamma 18.4.2021 16:00

Categories

Resources