I could possible use a few beta testers but it might be closed at this stage. _________________ Steven Martin
Twisted Constructions
http://www.botbitz.com
Fri Feb 20, 2015 5:48 pm
Tim
Joined: 30 Oct 2013
Posts: 247
Location: QLD
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!
Sat Feb 21, 2015 1:13 am
Jolijar
Joined: 22 Feb 2013
Posts: 96
Location: Dekalb, IL
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.
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
Sat Feb 21, 2015 9:39 am
Jolijar
Joined: 22 Feb 2013
Posts: 96
Location: Dekalb, IL
How are you going to handle fail safe?
stop moving when the connection is lost?
@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.
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 apologies for going OT/thread jacking, however if I can accomplish something similar on an android device/esp8266 I'd be stoked
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.
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
but yeah anything you want too throw out there, I'll give it a try
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.
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
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.
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