Search found 55 matches

by cagiva
Tue Oct 10, 2017 1:41 am
Forum: Technical Discussion
Topic: Waiting for connections..
Replies: 1
Views: 23

Waiting for connections..

If you run /examples/14-WiFi-Shield/mjpeg_streamer.py from the IDE and if you stop it while it is Waiting for connections.., then you cannot eject the M7 from its USB connection. I'm testing it on mac with OSX 10.10.5. The M7 is running with the latest firmware and the WiFi shield.
by cagiva
Fri Oct 06, 2017 9:46 pm
Forum: Technical Discussion
Topic: HTML generated by mjpeg_streamer
Replies: 4
Views: 52

Re: HTML generated by mjpeg_streamer

Ibrahim, I'm trying to send my own HTML page, however, I get an exception when I try to use readline or write on the socket. It seems like I can only use the socket.send or socket.recv methods. Although your documentation list the write and read methods. http://docs.openmv.io/library/usocket.html?hi...
by cagiva
Thu Oct 05, 2017 3:17 am
Forum: Technical Discussion
Topic: HTML generated by mjpeg_streamer
Replies: 4
Views: 52

HTML generated by mjpeg_streamer

How does the mjpeg_streamer example generate this HTML page? Can it be overridden with my own or customized?

Screen Shot 2017-10-04 at 11.52.57 PM.png
Screen Shot 2017-10-04 at 11.52.57 PM.png (87.3 KiB) Viewed 52 times
by cagiva
Tue Sep 19, 2017 9:58 pm
Forum: General Topics
Topic: Servo Shield
Replies: 12
Views: 345

Re: Servo Shield

Are the connections below correct to control one(1) servo using the M7 board with the WiFi shield only?
OpenMV.jpg
OpenMV.jpg (86.19 KiB) Viewed 128 times
by cagiva
Wed Sep 13, 2017 10:50 pm
Forum: Technical Discussion
Topic: M7 Bricked
Replies: 10
Views: 118

Re: M7 Bricked

I just sent you email to openmv@openmv.io

Thank you for offering a replacement.
by cagiva
Wed Sep 13, 2017 8:28 pm
Forum: Technical Discussion
Topic: M7 Bricked
Replies: 10
Views: 118

Re: M7 Bricked

I used a Windows 10 machine as you suggested, but the LED still continues flashing white after running the Bootloader from the IDE and it completes.
by cagiva
Tue Sep 12, 2017 11:51 am
Forum: Technical Discussion
Topic: M7 Bricked
Replies: 10
Views: 118

Re: M7 Bricked

It was pre-ordered back on December 15 directly through your website (purchased by guy.power@nasa.gov) so it's probably one the first boards shipped out. It's been stored in our lab until now when we decided to use it for one of our projects. How can access the log.txt file on the camera when it doe...
by cagiva
Tue Sep 12, 2017 1:19 am
Forum: Technical Discussion
Topic: M7 Bricked
Replies: 10
Views: 118

Re: M7 Bricked

Uploaded the openmv.dfu file, but the LED still flashes white after the reprogramming dialog completed. I'm pretty much experiencing the same problem/behavior described here: http://forums.openmv.io/viewtopic.php?f=6&t=208#p1144 When you wrote, "DFU is painfully slow." How slow? 5 mins, 1 hour, a day?
by cagiva
Mon Sep 11, 2017 11:59 pm
Forum: Technical Discussion
Topic: M7 Bricked
Replies: 10
Views: 118

Re: M7 Bricked

The LED is flashing rapidly and it looks like a white color. There is not USD inserted. Thanks.
by cagiva
Mon Sep 11, 2017 10:44 pm
Forum: Technical Discussion
Topic: M7 Bricked
Replies: 10
Views: 118

M7 Bricked

My M7 module seems to be bricked. I've followed the IDE instructions, but it still doesn't work. It just doesn't enumerate anymore. The LED keeps just flahsing after the LED turned green. Can someone please send me the instructions on how to resolve this on a Mac OSX 10.10.5? TIA! Screen Shot 2017-0...
by cagiva
Mon Aug 28, 2017 8:32 pm
Forum: General Topics
Topic: Servo Shield
Replies: 12
Views: 345

Re: Servo Shield

The regulator can supply up to 500mA, so I think it's safe to power the cam and servo from USB power bank (connect the servo to the 3.3v output on the left header). In my case, the servo requires an operating voltage range from 4.8V ~ 6.0V so this will not work for me. http://hitecrcd.com/products/...
by cagiva
Mon Aug 28, 2017 7:04 pm
Forum: General Topics
Topic: Servo Shield
Replies: 12
Views: 345

Re: Servo Shield

Sorry Kwabena, I'm not sure I follow. The servo has 3 wires, but are you saying that I need to connect the Vin and GND to an external power source and only use the servo signal wire to control it?
by cagiva
Mon Aug 28, 2017 4:23 pm
Forum: General Topics
Topic: Servo Shield
Replies: 12
Views: 345

Re: Servo Shield

kwagyeman wrote:
Mon Aug 28, 2017 1:38 pm
The M7 has one free pin when the WiFi shield is used for servos. Servo channel 3. Or P9.
Great, thanks Kwabena. One more question. Can I power the board and the servo via the USB connector using an external 5V 2A power bank?
by cagiva
Mon Aug 28, 2017 12:39 pm
Forum: General Topics
Topic: Servo Shield
Replies: 12
Views: 345

Re: Servo Shield

Hi Ibrahim, Thanks for the clarification. For my project, I just need to control one servo remotely using a web browser, but I'll prefer not to use an additional board to control the servo via UART/I2C. However, I found this post ( http://forums.openmv.io/viewtopic.php?t=159#p769 ) where you indicat...
by cagiva
Fri Aug 25, 2017 1:40 pm
Forum: General Topics
Topic: Servo Shield
Replies: 12
Views: 345

Servo Shield

Do I need the servo shield if I want to control just one hitec servo like the HS-85MG? Can I just connect it directly to pins one of the OpenMV board to control it with Servo.py script?
by cagiva
Tue Mar 21, 2017 8:29 pm
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 28
Views: 3611

Re: Python script to output MAVLink

kwagyeman wrote:
Tue Mar 21, 2017 8:26 pm
Did you order the OpenMV Cam M7?
Yes, we did. It should be under the name Guy Power.
by cagiva
Tue Mar 21, 2017 8:23 pm
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 28
Views: 3611

Re: Python script to output MAVLink

Boom: https://github.com/kwagyeman/openmv/blob/mavlink/usr/examples/18-MAVLink/mavlink_apriltags_landing_target.py https://github.com/kwagyeman/openmv/blob/mavlink/usr/examples/18-MAVLink/mavlink_opticalflow.py No clue if they work. Just did them both today. I think I got the protocol right however...
by cagiva
Tue Mar 21, 2017 11:03 am
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 28
Views: 3611

Python script to output MAVLink

kwagyeman, did you work up a py script to output MAVLink from the OpenMV module?
by cagiva
Mon Jan 30, 2017 11:37 am
Forum: Project Discussion
Topic: uArm & OpenMV
Replies: 1
Views: 537

uArm & OpenMV

I just wanted to share that uFactory has a crowdfunding on Indiegogo and their video promotes the OpenMV board.

https://www.youtube.com/watch?v=9ckppaEbHxg&t=0m51s
by cagiva
Mon Jan 23, 2017 5:24 pm
Forum: Technical Discussion
Topic: ubinascii
Replies: 11
Views: 1245

Re: ubinascii

Thanks Dave. Your last post did it. It works now and it's cool that I can build it from my Mac OSX. Cheers!

Code: Select all

MicroPython 38c54bf-dirty on 2017-01-23; OPENMV2 with STM32F427
Type "help()" for more information.
>>> import ubinascii
>>> 
by cagiva
Mon Jan 23, 2017 4:30 pm
Forum: Technical Discussion
Topic: ubinascii
Replies: 11
Views: 1245

Re: ubinascii

Anytime I get qstr errors, I normally do a clean and rebuild and then they go away. I ran make clean as you suggested and I now get this error: .. CC src/usbd_desc.c /Users/abencomo/git/openmv/src/build/micropython/py/objmodule.o:(.rodata.mp_builtin_module_table+0x54): undefined reference to `mp_mo...
by cagiva
Mon Jan 23, 2017 3:50 pm
Forum: Technical Discussion
Topic: ubinascii
Replies: 11
Views: 1245

Re: ubinascii

There are a couple different ways to change the configuration. You can edit openmv/src/micropython/stmhal/mpconfigport.h and change: #define MICROPY_PY_UBINASCII (1) With the above, I get these errors: CC ../py/objmodule.c In file included from /Users/abencomo/git/openmv/src/micropython/py/mpstate....
by cagiva
Mon Jan 23, 2017 12:56 pm
Forum: Technical Discussion
Topic: ubinascii
Replies: 11
Views: 1245

Re: ubinascii

kwagyeman wrote:It just isn't linked into the build.
How do you link the modubinascii into the build? Do I need to just add it to the make file?
by cagiva
Sun Jan 22, 2017 4:59 pm
Forum: Technical Discussion
Topic: ubinascii
Replies: 11
Views: 1245

Re: ubinascii

No, I don't have a linux machine so let me know when you have custom image for me to test it. Thanks!
by cagiva
Sun Jan 22, 2017 4:00 pm
Forum: Technical Discussion
Topic: ubinascii
Replies: 11
Views: 1245

ubinascii

Why doesn't OpenMV support ubinascii?

http://docs.micropython.org/en/latest/p ... t=binascii
by cagiva
Fri Jan 20, 2017 12:27 pm
Forum: Technical Discussion
Topic: Hw reset and/or reboot?
Replies: 12
Views: 2164

Re: Hw reset and/or reboot?

I used sensor.py to simplify things. We do use a different name. It seems that is how MP work. Loads imported modules and cache them in memory, which forces you to hard reset the board if you need test new changes in those modules.
by cagiva
Fri Jan 20, 2017 1:17 am
Forum: Technical Discussion
Topic: Hw reset and/or reboot?
Replies: 12
Views: 2164

Re: Hw reset and/or reboot?

import pyb pyb.hard_reset() Hum! It's good to know that one can also trigger a hard reset via command prompt. Thanks for that info. I have a main.py that imports another file from the sd card (import sensor) and everytime I made changes to the sensor.py file in my local laptop, I have to copy it in...
by cagiva
Thu Jan 19, 2017 1:53 pm
Forum: Technical Discussion
Topic: Hw reset and/or reboot?
Replies: 12
Views: 2164

Re: Hw reset and/or reboot?

Let me see if I understand this. Since the OpenMV board doesn't have a physical RST button like the Pyboard so do I need to ground the RST pin to trigger a hard reset?
by cagiva
Thu Jan 19, 2017 12:15 pm
Forum: Technical Discussion
Topic: I2C from machine vs I2C from pyb
Replies: 33
Views: 3178

Re: I2C from machine vs I2C from pyb

Great, thanks a lot!
by cagiva
Thu Jan 19, 2017 11:16 am
Forum: Technical Discussion
Topic: I2C from machine vs I2C from pyb
Replies: 33
Views: 3178

Re: I2C from machine vs I2C from pyb

No really since I can only use bitbanged SW I2C; which seems to be too slow for us. We would like to try the hardware I2C so it'll be greatly appreciated if you could just patch/upgrade the machine module.

BTW, congratulations on reaching the goal for M7!
by cagiva
Thu Jan 19, 2017 1:54 am
Forum: Technical Discussion
Topic: I2C from machine vs I2C from pyb
Replies: 33
Views: 3178

Re: I2C from machine vs I2C from pyb

I meant v1.8.7 or later. I thought you offer to upgrade and do an internal release before M7 is shipped. However, if that is not going to be the case, then our project will have to drop M4 and look for another option. Thanks for clarifying this though.
by cagiva
Wed Jan 18, 2017 10:10 pm
Forum: Technical Discussion
Topic: I2C from machine vs I2C from pyb
Replies: 33
Views: 3178

Re: I2C from machine vs I2C from pyb

Once OpenMV gets to 1.8.6 you can change machine.I2C(sda=pyb.Pin('P5'), scl=pyb.Pin('P4')) to be machine.I2C(2) and then it will use HW I2C rather than bitbanged (SW) I2C. I'll have to wait until Kwabena and Ibrahim update their firmware with MP version 1.8 or later. Until then, I'll have to use bi...
by cagiva
Wed Jan 18, 2017 4:10 am
Forum: Technical Discussion
Topic: I2C from machine vs I2C from pyb
Replies: 33
Views: 3178

Re: I2C from machine vs I2C from pyb

Dave, After the function below is called several times, I get this message "OSError: I2C bus error". Do I need to set the freq value in the constructor? def _set_reg8(self, address, value): data = ustruct.pack('>HB', address, value) self.i2c.writeto(self._address, data) def init(self): self._set_reg...
by cagiva
Wed Jan 18, 2017 3:48 am
Forum: Technical Discussion
Topic: I2C from machine vs I2C from pyb
Replies: 33
Views: 3178

Re: I2C from machine vs I2C from pyb

Thanks Dave. It works!

Code: Select all

>>> from machine import I2C, Pin
>>> i2c = I2C(sda=Pin('P5'), scl=Pin('P4'))
>>> print(i2c.scan())
[41]
>>> 
Wow, the machine.i2c module is poorly documented for the Pyboard. It actually indicates that the first argument is scl, and the second is sda.

Anyhow, thank again!
by cagiva
Wed Jan 18, 2017 12:34 am
Forum: Technical Discussion
Topic: I2C from machine vs I2C from pyb
Replies: 33
Views: 3178

Re: I2C from machine vs I2C from pyb

I'm not going to press Ibrahim to update MP right now since everything breaks when we do that. I'm working on getting our release we've been talking about out soon. Thanks Kwabena! Just let me know if you release it internally like you and Ibrahim did for the one that supports the QRCode so I can h...
by cagiva
Tue Jan 17, 2017 9:37 pm
Forum: Technical Discussion
Topic: I2C from machine vs I2C from pyb
Replies: 33
Views: 3178

Re: I2C from machine vs I2C from pyb

any reason you need the machine module? Hi Kwabena, I'm trying to adapt the code below for the VL53L0X sensor and if I use the pyb.I2C, then I'll have to change calls like writeto() and readto() with the counterpart mem_write() and mem_read() methods in the pyb.I2C module; which they behave differe...
by cagiva
Tue Jan 17, 2017 9:15 pm
Forum: Technical Discussion
Topic: I2C from machine vs I2C from pyb
Replies: 33
Views: 3178

Re: I2C from machine vs I2C from pyb

The machine module on the pyboard allows both HW and bit banged I2C to be used." Dave, That machine.I2C is actually the one that I would like to use, but I'm having trouble figuring out how to call its constructor. It seems that there is a new machine.I2C interface currently available on Micropytho...
by cagiva
Tue Jan 17, 2017 11:10 am
Forum: Technical Discussion
Topic: I2C from machine vs I2C from pyb
Replies: 33
Views: 3178

I2C from machine vs I2C from pyb

Besides their API syntax being different, is there any reason when I should favor one over the other.

"from machine import I2C" seems to be often used on boards equipped with an ESP module though.
by cagiva
Mon Jan 16, 2017 9:58 pm
Forum: Technical Discussion
Topic: Testing from the IDE
Replies: 1
Views: 405

Testing from the IDE

Does the OpenMV IDE transfer the .py file to the board when the user clicks on the "Start (run script)" button or is it just runs it temporally in the flash memory? Also, I usually use the Pymakr IDE with the Pyboard since allows me to trace and debug the scripts in runtime. However, when I try it w...
by cagiva
Sat Jan 14, 2017 3:46 am
Forum: Technical Discussion
Topic: QR Code Decoding
Replies: 17
Views: 2126

Re: QR Code Decoding

It works. Thank you both!
by cagiva
Fri Jan 13, 2017 3:30 pm
Forum: Technical Discussion
Topic: VL53L0X Time-of-Flight Ranging Sensor
Replies: 2
Views: 528

Re: VL53L0X Time-of-Flight Ranging Sensor

After doing some searches, I see that the "struct" module is available (in a limited form) on the openmv board as "ustruct". Unfortunately, "smbus" module was written specially for the microbit and will not work on the openmv board. I guess will have to adapt an existing driver.
by cagiva
Fri Jan 13, 2017 1:39 pm
Forum: Technical Discussion
Topic: VL53L0X Time-of-Flight Ranging Sensor
Replies: 2
Views: 528

VL53L0X Time-of-Flight Ranging Sensor

Will it be possible to use the OpenMV M4 board with this VL53L0X sensor? https://www.tindie.com/products/onehorse/vl53l0x-time-of-flight-ranging-sensor/ The interface is I2C, but the OpenMV board complains when I try to do "import smbus" and "import struct" https://github.com/popunder/VL53L0X/blob/m...
by cagiva
Fri Jan 13, 2017 1:23 pm
Forum: Technical Discussion
Topic: QR Code Decoding
Replies: 17
Views: 2126

Re: QR Code Decoding

Is the qrcode library in the latest firmware for M4? Any examples to test it?
by cagiva
Fri Jan 13, 2017 1:06 am
Forum: Technical Discussion
Topic: QR Code Decoding
Replies: 17
Views: 2126

Re: QR Code Decoding

Hi Kwabena,

In case you also decide to add support for AprilTags, here is a great paper on apriltag2; which details the fantastic gains in accurate recognition from greater distances and angles:

https://april.eecs.umich.edu/media/pdfs ... 16iros.pdf
by cagiva
Thu Jan 12, 2017 12:17 pm
Forum: Technical Discussion
Topic: 2.4 GHz vs 5 GHz Wifi Network
Replies: 2
Views: 502

Re: 2.4 GHz vs 5 GHz Wifi Network

Thanks Kwabena! That was the exact info I was looking for. Cheers!
by cagiva
Thu Jan 12, 2017 4:02 am
Forum: Technical Discussion
Topic: 2.4 GHz vs 5 GHz Wifi Network
Replies: 2
Views: 502

2.4 GHz vs 5 GHz Wifi Network

The wifi shield is able to scan, find, and connect to my 2.4 GHz wifi network, but it cannot do the same with 5 GHz wifi. Is that the expected behavior?
by cagiva
Wed Jan 11, 2017 7:01 pm
Forum: Kickstarter Topics
Topic: Future wishlist
Replies: 6
Views: 1350

Re: Future wishlist

kwagyeman wrote:Please apply it to the VIN pin to go into the regular.
Do you mean the VCC pin next to the P7 pin?

https://cdn.shopify.com/s/files/1/0803/ ... 5124046547
by cagiva
Wed Jan 11, 2017 2:47 pm
Forum: Kickstarter Topics
Topic: Future wishlist
Replies: 6
Views: 1350

Re: Future wishlist

Can I power the OpenMV Cam with a 3.7V Lithium Ion Polymer Battery (https://www.adafruit.com/products/1578)? - built-in support for hooking in & charging a LiPo battery, with battery low - detection And, does the above mean that I cannot charge the battery using the usb connector on the current Open...
by cagiva
Tue Jan 10, 2017 11:56 am
Forum: Technical Discussion
Topic: Half-Duplex Operations
Replies: 6
Views: 831

Re: Half-Duplex Operations

I have another repository which implements a CLI tool (in Python2) for talking to bioloid devices, https://github.com/dhylands/Bioloid (this was written long before MicroPython existed) The repository with the half-duplex serial stuff: https://github.com/dhylands/bioloid3 will eventually have code ...
by cagiva
Mon Jan 09, 2017 8:28 pm
Forum: Technical Discussion
Topic: Half-Duplex Operations
Replies: 6
Views: 831

Re: Half-Duplex Operations

You can. See this code for the pyboard (STM32F405): https://github.com/dhylands/bioloid3/blob/master/stm_uart_port.py If you set the HDSEL bit in the uart's CR3 register, then it puts the uart in half-duplex mode, and connects Tx to Rx internally. You only need to use the TX pin externally. I use t...

Go to advanced search