Send images to a webserver with OpenMV M7 + NodeMCU

OpenMV related project discussion.
vfernandezkim77
Posts: 2
Joined: Tue Apr 24, 2018 9:07 pm

Send images to a webserver with OpenMV M7 + NodeMCU

Postby vfernandezkim77 » Tue Apr 24, 2018 9:19 pm

This is literally my first forum post of any kind so let me know if I need to elaborate on anything.
As the title suggests I'm trying to send a snapshot image from the OpenMV cam to a webserver. This is to happen without the OpenMV Wifi Board (because they're not in stock right now) and I own a NodeMCU. Frankly, I'm new to both devices and very weak at coding so I'm looking for some guidance.

Doing a little researching, I think I will do the following:
1) SPI protocol between M7 cam and NodeMCU
2) NodeMCU as master(?). This was decided solely on the fact that there exists example code for Arduino(M)-M7 cam(S) SPI comms. Though, from what I've seen, it's more difficult this waY...?
3) No AT command firmware, Arduino API for NodeMCU

Is this a good approach? So far I have been trying to simply send a message ("Hello World") through SPI, with no luck. So I'm starting to doubt this method.

Thank you,
Victor
User avatar
kwagyeman
Posts: 2286
Joined: Sun May 24, 2015 2:10 pm

Re: Send images to a webserver with OpenMV M7 + NodeMCU

Postby kwagyeman » Wed Apr 25, 2018 1:59 am

Just send the image over UART. Just set the baud rate really high. The UART on the camera can go into the 1 Mb/s above range.

Here's how simple it is to send an image:

Code: Select all

uart.send(img.snapshot().compress(quality=90))
That's just the sending part, you have to init the uart object and setup the camera. But, it's easy in general.
Nyamekye,
Afgty
Posts: 10
Joined: Tue Jun 19, 2018 8:03 am

Re: Send images to a webserver with OpenMV M7 + NodeMCU

Postby Afgty » Wed Jun 20, 2018 3:59 pm

vfernandezkim77 wrote:
Tue Apr 24, 2018 9:19 pm
This is literally my first forum post of any kind so let me know if I need to elaborate on anything.
As the title suggests I'm trying to send a snapshot image from the OpenMV cam to a webserver. This is to happen without the OpenMV Wifi Board (because they're not in stock right now) and I own a NodeMCU. Frankly, I'm new to both devices and very weak at coding so I'm looking for some guidance.

Doing a little researching, I think I will do the following:
1) SPI protocol between M7 cam and NodeMCU
2) NodeMCU as master(?). This was decided solely on the fact that there exists example code for Arduino(M)-M7 cam(S) SPI comms. Though, from what I've seen, it's more difficult this waY...?
3) No AT command firmware, Arduino API for NodeMCU

Is this a good approach? So far I have been trying to simply send a message ("Hello World") through SPI, with no luck. So I'm starting to doubt this method.

Thank you,
Victor
have you finished it?

Return to “Project Discussion”

Who is online

Users browsing this forum: Google [Bot] and 3 guests