Search found 773 matches

by OutoftheBOTS_
Tue Feb 06, 2018 10:41 am
Forum: ESP32 boards
Topic: MicroPython on ESP32 with SPIRAM support
Replies: 457
Views: 136286

Re: MicroPython on ESP32 with SPIRAM support

@ttmetro thanks for your response :) I have been chipping away at it and have been using a webserver wrote by Jczic that is embedded in frozen byte code in laboris firmware see wiki https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/microWebSrv I have also found an easy to use open source ...
by OutoftheBOTS_
Sun Feb 04, 2018 11:45 pm
Forum: Programs, Libraries and Tools
Topic: A Micro HTTP Web Server and language templating for MicroPython
Replies: 5
Views: 3782

Re: A Micro HTTP Web Server and language templating for MicroPython

Ok I am getting further but need a little advice. So I think it works like this. The client needs to establish the websocket but once this is done the the client doesn't need to request a message the server can push out messages. For the server to push out the message it needs a pointer to the webso...
by OutoftheBOTS_
Sun Feb 04, 2018 11:27 am
Forum: Programs, Libraries and Tools
Topic: A Micro HTTP Web Server and language templating for MicroPython
Replies: 5
Views: 3782

Re: A Micro HTTP Web Server and language templating for MicroPython

Ok I found the wstest.html and am playing with it now and it works. I think that I maybe better understanding how it work. The server can only send a message in response the the client sending a message first??? I want to graph live data from my robot and new data will be available from a timer even...
by OutoftheBOTS_
Sun Feb 04, 2018 9:48 am
Forum: Programs, Libraries and Tools
Topic: A Micro HTTP Web Server and language templating for MicroPython
Replies: 5
Views: 3782

Re: A Micro HTTP Web Server and language templating for MicroPython

@jczic I am trying to get websockets to work on my ESP32 using your library. I have tried all your examples and they work fine on the firmware I am using (laboris port) This is the code that I tried to start the webserver and send websocket messages, I also have a htlm file in the flash/www/ directo...
by OutoftheBOTS_
Fri Feb 02, 2018 10:33 pm
Forum: ESP32 boards
Topic: MicroPython on ESP32 with SPIRAM support
Replies: 457
Views: 136286

Re: MicroPython on ESP32 with SPIRAM support

@pythoncoder Thanks for your suggestion. After googling it seems running a web-server on the ESP32 with websockets running a java script plotter client side will do the job nicely and the websockets will also allow me to make live changes to my PID gain on the ESP32. It is going to be an interesting...
by OutoftheBOTS_
Fri Feb 02, 2018 6:41 am
Forum: ESP32 boards
Topic: MicroPython on ESP32 with SPIRAM support
Replies: 457
Views: 136286

Re: MicroPython on ESP32 with SPIRAM support

@pythoncoder Thanks :) I am at the stage of tuning my PID control system for individual motor speed then a higher level PID to sync the 2 motors so the robot will drive straight instead of waddle like a duck. ATM I am trying to tune by just printing the error to the screen with very ordinary results...
by OutoftheBOTS_
Thu Feb 01, 2018 9:01 pm
Forum: ESP32 boards
Topic: MicroPython on ESP32 with SPIRAM support
Replies: 457
Views: 136286

Re: MicroPython on ESP32 with SPIRAM support

All my programs I use a try except to catch any errors or keyboard interrupt and in the except I deint everything like SPI, PWM but haven't found any docs for releasing machine.Pin and am just setting pin.value(0), is there a way to deinit Pin??
by OutoftheBOTS_
Thu Feb 01, 2018 11:57 am
Forum: ESP32 boards
Topic: MicroPython on ESP32 with SPIRAM support
Replies: 457
Views: 136286

Re: MicroPython on ESP32 with SPIRAM support

@laboris Thanks for your help. This will allow me to make the most of the available pins, I think that I will nee all of them and will run the SD card in 1 line mode as will need the extra pins. Hoping to run : SPI TFT, SPI touch, SD card, 2 x SPI encoder counters, H-bridge needing 4 output pins, AD...
by OutoftheBOTS_
Thu Feb 01, 2018 9:27 am
Forum: ESP32 boards
Topic: MicroPython on ESP32 with SPIRAM support
Replies: 457
Views: 136286

Re: MicroPython on ESP32 with SPIRAM support

I have had my robot up and driving around today and now need to start to hook all the peripherals up. I need to workout what pins I will ise for what( I am likely to use them all). I want to make sure that I am not connecting something to a pin that shouldn't be used. Can someone confirm that these ...
by OutoftheBOTS_
Thu Feb 01, 2018 6:55 am
Forum: General Discussion and Questions
Topic: efficient use of ustruct.unpack?
Replies: 5
Views: 1553

Re: efficient use of ustruct.unpack?

very easy you can unpack muitlpe items at once even if they r different types, for you it will be even easier as they r all the same types.

Something like this will unpack 100 integers into an array

Code: Select all

format_string = "H" * 100
array_of_intergers = ustruct.unpack (format_string, string_2b_unpacked)