Ok so progressing I have pretty much everything I wanted working. Except it appears to be a bit shit.
I have a delay in the response which makes it unusable. I am not sure if this is in the PWM stuff, the Wifi interface, the HTTP server or the HTML5 page that it uses.
However I can confirm that it works on iOS, Android and PC (chrome with mouse) .
Slowly working on the debugging. _________________ Steven Martin
Twisted Constructions
http://www.botbitz.com
Sat Apr 11, 2015 5:02 pm
Tim
Joined: 30 Oct 2013
Posts: 247
Location: QLD
very cool, cheers for making if available, looking forward to flashing that chip, should go well on the little prototype bot,
does your PC have any physical ports on it?
If so you could send a byte/whatever out on that and use that to trigger your scope then see how long it takes to appear on the device.
Does the thing support ICMP ping? that should tell you something. (IF your ping is 200ms then you have a serious issue)
IF not you might consider implementing it in your code, just rx a packet and reply, time the difference.
(I suggest using some native code on the PC rather than trying to do it in the browser, also doing that would let you rule out the browser.) _________________ Mechanical engineers build weapons, civil engineers build targets
Nothing really other than USB which makes it hard. I am thinking the most likely candidate for delay is the HTTP server. I am going to write a simple UDP port interface.
yeah, you are going to be doing a full TCP setup then get/post every command unless you have keepalive/pipelining?, that isn't going to super speedy.
Even over USB delay should be in the few msec range (<5, normally like 1). It should be well below human perception anyway.
If you are feeling keen you can tap into one of the I2C busses floating around most desktops these days ;->
oooh, I have it.
get a light dependant resistor (or photodiode/transistor whatever) tape it over a bit of your screen, make that bit black, then make it white and send your data.
use the LDR as the trigger for a scope or better yet logic analyser. _________________ Mechanical engineers build weapons, civil engineers build targets
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