Search found 40 matches

by cagiva
Tue Mar 21, 2017 8:29 pm
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 28
Views: 1271

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: 1271

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: 1271

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: 266

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: 592

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: 592

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: 592

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: 592

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: 592

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: 592

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: 964

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: 964

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: 964

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: 1417

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: 1417

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: 1417

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: 1417

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: 1417

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: 1417

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: 1417

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: 1417

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: 1417

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: 1417

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: 223

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: 16
Views: 983

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: 273

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: 273

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: 16
Views: 983

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: 16
Views: 983

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: 250

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: 250

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: 642

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: 642

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: 411

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: 411

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...
by cagiva
Sat Jan 07, 2017 3:45 am
Forum: Technical Discussion
Topic: Cannot power up the OpenMV board
Replies: 5
Views: 379

Re: Cannot power up the OpenMV board

Yes, that didn't make sense to me either. BTW, does the line below mean that the firmware installed was the latest OpenMV Version 2 in conjunction with MicroPython v1.8? Does your IDE alway install the latest release version? MicroPython v1.8-4345-g3a2670b on 2016-11-03; OPENMV2 with STM32F427 https...
by cagiva
Fri Jan 06, 2017 7:44 pm
Forum: Technical Discussion
Topic: Half-Duplex Operations
Replies: 6
Views: 411

Half-Duplex Operations

Can the UART system on the OpenMV board be configured for half-duplex operations?
by cagiva
Fri Jan 06, 2017 3:35 am
Forum: Technical Discussion
Topic: OpenMV with pymavlink
Replies: 1
Views: 176

OpenMV with pymavlink

Will it be feasible (and hopefully trivial) to install pymavlink onto the OpenMV board?

https://github.com/ArduPilot/pymavlink
by cagiva
Fri Jan 06, 2017 3:06 am
Forum: Technical Discussion
Topic: Cannot power up the OpenMV board
Replies: 5
Views: 379

Re: Cannot power up the OpenMV board

Your suggestion did it "attach a wire between the BOOT0 and RST pin and then plug it back into your computer". After that I was able to upload the firmware and run the sample programs. Thanks, and good luck with the new KickStarter campaign!
by cagiva
Thu Jan 05, 2017 9:46 pm
Forum: Technical Discussion
Topic: Cannot power up the OpenMV board
Replies: 5
Views: 379

Cannot power up the OpenMV board

Our OpenMV board arrived today from Robotshop. However, when I connect it to the laptop or to an external 5V power supply, none LED lights up and it doesn't show listed under the /dev/ directory (ls /dev/tty.*). Is it defective? On the back reads:

OpenMV Cam 2
OV7725 - Rev 1
2/9/2016

Go to advanced search