Go Down

Topic: Android Bluetooth joystick (Read 382220 times) previous topic - next topic

Isaac96

Wahoo... very strange beasts   :smiley-eek-blue:

Kudos for this very original work
Using an old smartphone as an IP camera is a great way to grant them a "second life"
If you happpen to produce some video's, just upload them to YouTube and drop a link here.

Thanks for your excellent feedback



@Isaac96Just have a look at 1st post in this thread



I was referring to the IP camera app on the bot. :).
Do not PM me for help. I will delete immediately.
CONNECT THE GROUNDS!

After Tuesday, even the calendar goes W T F


sui

#842
Mar 21, 2017, 09:55 pm Last Edit: Mar 21, 2017, 09:59 pm by sui
Bought this makeblock starter kit tank last week because of reasons ... (it was on sale :smiley-mr-green:). Luckily had a sparkfun bluetooth mate laying around for some better connectivity than the infrared remote that was contained in the kit. Spend hours in the play store to finally find this awesome app - all the other "press the button" apps lack the right user experience - and the video stream is the cherry on top :)
For now I just strapped a smartphone on the bot but i'd like to use a tiny 2,4ghz wireles analog cam instead. Does someone know a simple cam2mjpeg streaming tool for windows?



kas

Hi sui,

Seems you had no problems in setting up Total RC Commander

Please let me have a link to this tank kit
Thanks for your feedback  ;)


jcleve

#844
Jul 07, 2017, 12:51 am Last Edit: Jul 07, 2017, 06:50 am by jcleve
Hey kas,

I ordered a wanscam hw0021

https://www.amazon.com/gp/product/B00B2IIVNC/ref=oh_aui_detailpage_o01_s01?ie=UTF8&psc=1

to pair with total rc commander and I'm having a bit of difficulty getting the video feed to work. the feed url from your post (http://{camera IP:port}/videostream.cgi?user=admin1&pwd=&resolution=32&rate=0) doesn't work with my model, I guess. Which model did you use?

thanks,

john

kas

Quote
I ordered a wanscam hw0021
https://www.amazon.com/gp/product/B00B2IIVNC/ref=oh_aui_detailpage_o01_s01?ie=UTF8&psc=1
$35  :o , IP cameras are now getting dirt cheap



Quote
Which model did you use?
I used a Wanscam JW0004, looks pretty much the same


Can you connect wirelessly from your favorite web browser ??

The video feed  _format_  should be OK, get in your cam configuration and check for
 - default address (192.168.1.10)
 - default port (99)
 - default user (admin1 yours is probably admin)  <---<<
 - default pass (none)

Let me know



jcleve

#846
Jul 10, 2017, 11:38 pm Last Edit: Jul 10, 2017, 11:49 pm by jcleve
Hey Kas,

Yeah, I can connect to it and I get a video stream in IE and FF, but no love in chrome. I think the problem is the lack of a dedicated stream URL with my model. Most cams have their admin stream URL with tool overlays, etc, but then a dedicated stream URL for just the video feed. I don't think my model has that (or it's not documented, anyway). Looks like the admin page is a Flash page also! :-/ No big deal. I'm thinking of using a raspberry PI with motioneye. I know it has a dedicated stream url. I've got a couple laying around so I'll give that a go and report my findings.

Thanks


jcleve

hey kas,

The raspberry pi with motioneye os works like a champ (release 20170611)...feels much more "maker" too. :-) This might be a better recommendation than the ever-changing chinese ip cams...just a thought. Anyway...as always, thanks for your work. Now I just have to solder up a power supply for the PI and send my bot on its way.

highest regards

kas

Thanks for this interesting contribution

Please post a description together with photos and/or videos when ready
I know nothing about Raspberry Pi    :-[


jcleve

Absolutely! I'll put something together over the weekend.

kas

PM's excerpts:

Quote
Hi Kas,

I'm wondering if you can share the Joystick bluetooth Commander src code with me. In the last few months I've been reversing a wheelchair protocol called R-Net with a friend of mine. R-Net runs on chairs like the Permobil M300 and many others. The protocol runs off on CANBUS.

You can see the progress here, you can find more videos but here are some to watch to get you interested hopefully.
https://youtu.be/5TaMsLGB5UI
https://youtu.be/wW4jzoRx98A

github:
https://github.com/redragonx/can2RNET
And of course I will fork the src code with your name on it still. My goal is to make your app work with my R-Net library I created.

Thanks
Hi redragonx ,

So far, I never shared my Android code
but I can modify the code for you
Let me know

Cheers



Quote
Thanks kas,

I will keep this in mind. I figured a way to use the app as is, but i will need to integrate some things first into my library.
I have a small code change request, could you please add 10 ms data rate option. The wheelchair protocol expects this.

Thanks,
Check your mail   ;)



woodygb

#852
Jul 27, 2017, 06:58 pm Last Edit: Jul 27, 2017, 07:01 pm by woodygb
@Kas,

I think the request comes from Stephen ...https://github.com/redragonx

He posts on the Wheelchairdriver forum where I am a member and ...since I all ready use your App for a wheelchair.... I recommended the Android Bluetooth Joystick to him.

Wheelchairdriver.Thread

Great that you could help him out.

Cheers Woody.

kas

#853
Jul 27, 2017, 07:29 pm Last Edit: Jul 27, 2017, 07:29 pm by kas
Quote
Great that you could help him out
We are entering real  life, will do my best


jcleve

#854
Jul 29, 2017, 06:15 pm Last Edit: Jul 29, 2017, 06:29 pm by jcleve
hey kas,

Here's my video rover. It's still a work-in-progress, but thought it was time to share.

https://drive.google.com/open?id=1XY-pdQfTjokx6uCytp5NGS3-o8phMzn-ew
https://drive.google.com/open?id=1LWTUK_vJiriAFSlEfJUzI5ceApNuwvoXig
https://drive.google.com/open?id=1LAV1pB3Qo8C7qZggXwpg3WKdkMriFf8mLg

- 4wd chassis
- arduino mega
- adafruit motor shield v2
- raspberry pi 3 model b (with motioneyeOS installed)
- raspberry Pi NoIR camera module V2 - 8pm 1080p30
- cheap, ebay raspberry pi case with camera port
- adafruit pan/tilt camera mount modified to attach the cased raspberry pi
- HC-05 bluetooth module
- 9.6v 2000mah batter pack to drive the motors
- 5.8v 22000mah power bank to drive the arduino and raspberry pi
- Total RC Commander!

Next upgrade will be an esp8266 in access point mode to allow direct wifi connectivity to the rover to eliminate the environmental wifi dependency.

Go Up