This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ESP32
#3
(2018-05-17, 10:58 AM)quetzal Wrote: Hello,

I've an esp32 and a board "m5stack" which include a mpu9250. I've bought planning to code an autopilot with it, but then i discovered pypilot.

Do you think it will be difficult to port pypilot to these boards ? (i've not yet looked the code of pypilot). Since m5stack support micropython, have a screen, the mpu9250, wifi, etc... it would be a good choice to keep a pilot without raspberry. I know python but i don't know the limitations of micropython (perhaps you don't know too Smile  


Congratulations for making this pilot, it's the missing opensource part of sailing for the moment.
I do hope to support micropython. As far as I know it should be possible.

It would be worth the effort to support smaller platforms.

The key features I am unsure of:
1) multiprocessing -- This is probably the most difficult to deal with.   Pypilot uses several processes to offload to avoid stalling the control loop. and enable processing elsewhere when waiting for data transfers.   It should be possible to make it work with a single process for proof of concept, but some type of prioritised threading is prefered.   
2) networking (sockets) -- possibly already supported over wifi anyway for remote control and config
3) filesystem -- or the ability to read and write to just a single file to store configuration
4) 520kb ram -- is it enough?  I think probably, but not sure how efficient micropython is

The part reading from i2c would need to be ported from linux devices but I don't think it would be too difficult, the same for commanding the motor over a serial port to the controller.

I think certain features like the webserver for browser control would be difficult without a rewrite, but this is not really that important initially.   The existing LCD menu interface can probably be ported.

So... yes it's possible, but I don't have the hardware at this time or I might try it.
Reply


Messages In This Thread
ESP32 - by quetzal - 2018-05-17, 10:58 AM
RE: ESP32 - by Sailoog - 2018-05-17, 05:31 PM
RE: ESP32 - by seandepagnier - 2018-05-18, 02:54 AM
RE: ESP32 - by JeroenAdam - 2018-05-18, 12:30 PM
RE: ESP32 - by quetzal - 2018-05-18, 12:58 PM
RE: ESP32 - by seandepagnier - 2018-05-18, 02:02 PM
RE: ESP32 - by Ingo - 2018-05-21, 02:28 AM
RE: ESP32 - by seandepagnier - 2018-05-21, 03:12 AM
RE: ESP32 - by quetzal - 2018-05-23, 10:08 AM
RE: ESP32 - by seandepagnier - 2021-12-26, 08:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)