www.robowars.org

RoboWars Australia Forum Index -> Builders Reports

Wifi RX Development
Goto page Previous  1, 2, 3, 4  Next

Post new topic   Reply to topic
  Author    Thread
marto
Experienced Roboteer


Joined: 08 Jul 2004
Posts: 5459
Location: Brisbane, QLD


 Reply with quote  

I could possible use a few beta testers but it might be closed at this stage.
_________________
Steven Martin
Twisted Constructions
http://www.botbitz.com

Post Fri Feb 20, 2015 5:48 pm 
 View user's profile Send private message Send e-mail MSN Messenger
Tim



Joined: 30 Oct 2013
Posts: 247
Location: QLD


 Reply with quote  

Wow missed 90% of this thread just saw it, if you need beta testers I'd be happy to help, if it's closed it's closed otherwise Good work!

Post Sat Feb 21, 2015 1:13 am 
 View user's profile Send private message
Jolijar



Joined: 22 Feb 2013
Posts: 96
Location: Dekalb, IL


 Reply with quote  

Okay let me know. I have a few chips laying around.
I'd be happy to help you test it if you want more help.

Post Sat Feb 21, 2015 3:40 am 
 View user's profile Send private message Visit poster's website
marto
Experienced Roboteer


Joined: 08 Jul 2004
Posts: 5459
Location: Brisbane, QLD


 Reply with quote  

Yeh will let you know. Can probably send out the firmware for testing but unlikely to put the code on the internet at this stage.
_________________
Steven Martin
Twisted Constructions
http://www.botbitz.com

Post Sat Feb 21, 2015 9:39 am 
 View user's profile Send private message Send e-mail MSN Messenger
Jolijar



Joined: 22 Feb 2013
Posts: 96
Location: Dekalb, IL


 Reply with quote  

How are you going to handle fail safe?
stop moving when the connection is lost?

Post Sat Feb 21, 2015 10:40 am 
 View user's profile Send private message Visit poster's website
marto
Experienced Roboteer


Joined: 08 Jul 2004
Posts: 5459
Location: Brisbane, QLD


 Reply with quote  

There is a timeout if it stops getting signals. But its when the phone screen sleeps and keeps getting signals in the background there is a problem.

Steve
_________________
Steven Martin
Twisted Constructions
http://www.botbitz.com

Post Sat Feb 21, 2015 11:31 am 
 View user's profile Send private message Send e-mail MSN Messenger
Tim



Joined: 30 Oct 2013
Posts: 247
Location: QLD


 Reply with quote  

@Steve even the firmware alone would be cool, I've just spent all night reading and going over the things you mentioned over on the esp thread.


quote:
So looking at how you can use a native application on the ESP8266 to interface to a phone and send data back.

I know you can get the orientation of the phone from HTML5 and this works natively on most iOS and Android devices. You can also send data back to a server (in this case the ESP8266) via a web socket.

Links:
Details on websockets
http://www.html5rocks.com/en/tutorials/websockets/basics/
Simple Websocket
http://stackoverflow.com/questions/12407778/connecting-to-tcp-socket-from-browser-using-javascript
Orientation
http://www.html5rocks.com/en/tutorials/device/orientation/
Device Compatibility
http://mobilehtml5.org/

Combine this with the example of sending servo pulses I posted earlier today and these pin defs
https://github.com/esp8266/esp8266-wiki/wiki/Pin-definition

And you have yourself a 4ch RX with a web interface for $5.

Now to make that actually work.

Steve


Now getting familiar with how web sockets work in this application, as much as I could/have in +10 hours, as I have no servo's to test with so I wrote this quick piece of (shite but it works) code to test run x 2 tz85's from a Arduino mega via the signal wire.
code:
#include <Servo.h>

Servo m1 , m2 ; //connect motors to esc tz85a

void setup () {
m1.attach(8); //motor to arduino pins used
m2.attach(9); //motor to arduino pins used
delay(10);    //this helps the arduino
m1.write(20); //allow esc to arm
m2.write(20); //allow esc to arm
 
}

void loop() {
  m1.write(120);  //throttle position in degrees
                  //turns wheel forward
  m2.write(60);  //throttle position in degrees
                  //turns wheel forward
 
}





it works https://www.youtube.com/watch?v=jhvfS65CkHs&list=UUuCs-JhxyfVVCI0COolmBSQ
and I have a slightly better understanding how this all should work with the esp, and yeah it has a wobbly wheel Very Happy apologies for going OT/thread jacking, however if I can accomplish something similar on an android device/esp8266 I'd be stoked

Cheers Tim

Post Sat Feb 21, 2015 1:05 pm 
 View user's profile Send private message
marto
Experienced Roboteer


Joined: 08 Jul 2004
Posts: 5459
Location: Brisbane, QLD


 Reply with quote  

Well just had to read my own thread to remember wtf I had been doing previously.

I really need to work out the best way to control the robot from the webpage. I am thinking the easiest starting point would be to do keyboard control from a PC.

Really there is 3 types of web interface I am going to need.
- PC
- Android
- IOS

I would also like a standard interface so people can build there own Apps programs etc to interface with the device. I am thinking a simple UDP socket is the easiest way to go so people can just stream data at it.

At the moment the GET is working ok so will just see if I can interface to that on a PC through the keyboard as step 1.

Steve
_________________
Steven Martin
Twisted Constructions
http://www.botbitz.com

Post Sat Feb 28, 2015 7:55 pm 
 View user's profile Send private message Send e-mail MSN Messenger
Tim



Joined: 30 Oct 2013
Posts: 247
Location: QLD


 Reply with quote  

Sounds good to me, have those 3 OS's on hand just no iPhone, I use Android

I'm familiar with using Eclipse SDK/ADT on PC with Android Phones ie. building "whatever app" on the PC and porting it to the phone, if that helps?
....started years ago and ended up being side tracked/put on hold was attempting something similar with Bluetooth.... realized I had a lot to learn Very Happy


but yeah anything you want too throw out there, I'll give it a try

Cheers Tim

Post Sat Feb 28, 2015 8:20 pm 
 View user's profile Send private message
marto
Experienced Roboteer


Joined: 08 Jul 2004
Posts: 5459
Location: Brisbane, QLD


 Reply with quote  

My current plan as far as distributing the code for testing is to make a free binary image which allows 2Ch control. This means it will be usable for a simple wedge and testing but if you want to have a weapon you will probably need to buy the BotBitz version if there ends up with one.

Otherwise might just end up open sourcing it but after all the free support and stupid questions I fielded with the ESC code I am really not keen to do that again. So we shall see.

Steve
_________________
Steven Martin
Twisted Constructions
http://www.botbitz.com

Post Sat Feb 28, 2015 9:11 pm 
 View user's profile Send private message Send e-mail MSN Messenger
Valen
Experienced Roboteer


Joined: 07 Jul 2004
Posts: 4436
Location: Sydney


 Reply with quote  

make a new email address, stick the code on github, mail rule to roudfile all email to said address ;->
_________________
Mechanical engineers build weapons, civil engineers build targets

Post Mon Mar 02, 2015 9:40 am 
 View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
marto
Experienced Roboteer


Joined: 08 Jul 2004
Posts: 5459
Location: Brisbane, QLD


 Reply with quote  

Hey guys going to throw this code up on GitHub.

https://www.github.com/BotBitz/WifiRx

Enjoy

Steve
_________________
Steven Martin
Twisted Constructions
http://www.botbitz.com

Post Thu Mar 26, 2015 7:17 pm 
 View user's profile Send private message Send e-mail MSN Messenger
Knightrous
Site Admin


Joined: 15 Jun 2004
Posts: 8511
Location: NSW


 Reply with quote  

Arduino IDE now works with the ESP8266
http://hackaday.com/2015/03/28/arduino-ide-support-for-the-esp8266/
_________________
https://www.halfdonethings.com/

Post Sun Mar 29, 2015 4:03 pm 
 View user's profile Send private message
marto
Experienced Roboteer


Joined: 08 Jul 2004
Posts: 5459
Location: Brisbane, QLD


 Reply with quote  

Interesting.

Seems a little limited at the moment but may be a much simpler way for people to program things in the future.

Steve
_________________
Steven Martin
Twisted Constructions
http://www.botbitz.com

Post Mon Mar 30, 2015 12:09 pm 
 View user's profile Send private message Send e-mail MSN Messenger
marto
Experienced Roboteer


Joined: 08 Jul 2004
Posts: 5459
Location: Brisbane, QLD


 Reply with quote  

So I have this mostly finished.

I have two channels out with a touch screen interface that works on both my iPhone and Android phone. It works with a virtual thumb-stick. You touch and drag to move the robot. It still has a few glitches like needing to rotate the screen to reset the canvas before it works but the responsiveness on the scope looks really good.

Mixing is implemented in a simple manner. Its just a straight linear mix with limits instead of anything fancy which is a bit shit but it works.

The resolution could use a bit of a bump up you only get about 50 steps before you will max out the ESC in either direction this means probably 20 speed steps in each direction which is probably unnoticeable but could be better. I upped the resolution on the BotBitz V2 ESCs to 2000steps or something which is probably way overkill considering the PWM out resolution.

Only other main thing missing is decent failsafing I have sort of implemented it but its turned off at this stage though shouldn't be hard to add. If all works out well everyone should be able to make $5 Wifi RXs which are actually usable.

Steve.
_________________
Steven Martin
Twisted Constructions
http://www.botbitz.com

Post Sat Apr 04, 2015 12:01 am 
 View user's profile Send private message Send e-mail MSN Messenger
  Display posts from previous:      

Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 3 of 4

Goto page Previous  1, 2, 3, 4  Next

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Last Thread | Next Thread  >
Powered by phpBB: © 2001 phpBB Group
millenniumFalcon Template By Vereor.