Search found 70 matches

by zlite
Thu Jun 15, 2017 7:21 pm
Forum: General Topics
Topic: Run program at startup
Replies: 2
Views: 840

Re: Run program at startup

Yes, it's as simple as that.

Can also select "Save open script to MVCam " in the IDE Tools menu
by zlite
Sat Jun 03, 2017 5:35 pm
Forum: Technical Discussion
Topic: Error with img.binary
Replies: 4
Views: 2133

Re: Error with img.binary

Thanks guys. I ended up going with:
img.binary([thresholds[threshold_index]])
Looks weird, but seems to work!
by zlite
Thu Jun 01, 2017 6:01 pm
Forum: Technical Discussion
Topic: Error with img.binary
Replies: 4
Views: 2133

Error with img.binary

I'm getting the weirdest errors with the latest firmware (2.4) and binary filtering:

If I use "img.binary(0, 83, -128, 15, -128, 127)" it works.

But if I do this:
threshold = (0, 83, -128, 15, -128, 127)
img.binary(threshold)
I get the attached error:
by zlite
Tue May 30, 2017 4:08 am
Forum: Technical Discussion
Topic: Can't see OpenMV on Ubuntu despite doing adduser dialout
Replies: 4
Views: 1371

Re: Can't see OpenMV on Ubuntu despite doing adduser dialout

Thanks guys. I did all that, but no joy -- still Permission Denied. So I dug around a bit, and it turns out that the command should actually be "sudo adduser <user> serial" (not "dialout"). Now it works I think something has changed in Debian/Ubuntu, or perhaps that particular port is part of the se...
by zlite
Mon May 29, 2017 9:38 pm
Forum: Technical Discussion
Topic: Can't see OpenMV on Ubuntu despite doing adduser dialout
Replies: 4
Views: 1371

Can't see OpenMV on Ubuntu despite doing adduser dialout

I've done all the things listed in the Linux installation instructions, including sudo adduser <myuser> dialout" but the OpenMV IDE still says "Error: Permission Denied" when I try to connect The computer is a Chromebook Pixel running Ubuntu xenial (16) When I do a dmesg it shows that the OpenMV has...
by zlite
Thu May 25, 2017 3:48 pm
Forum: Technical Discussion
Topic: Line detection
Replies: 5
Views: 1716

Re: Line detection

Ah, got it. I'm using your beta firmware, so I'll grab the examples off Github instead. Thanks!
by zlite
Tue May 23, 2017 10:19 am
Forum: Project Discussion
Topic: Line Following - Blob Spotting/Decoding robot
Replies: 42
Views: 11219

Re: Line Following - Blob Spotting/Decoding robot

Will you be updating the IDE's included examples to work with the new APIs? Right now a few of them are broken, including Find Lines.
by zlite
Thu May 18, 2017 7:48 pm
Forum: General Topics
Topic: lines.py not working as expected
Replies: 33
Views: 10250

Re: lines.py not working as expected

This works great by adding red_threshold = (0,100, 0,127, 0,127) # L A B green_threshold = (0,100, -128,0, 10,127) # L A B blue_threshold = (0,100, -128,127, -128,0) # L A B img = sensor.snapshot() img.binary([green_threshold]) I had to really crank up the thresholds to get a single line, however: f...
by zlite
Tue May 16, 2017 9:18 am
Forum: General Topics
Topic: lines.py not working as expected
Replies: 33
Views: 10250

Re: lines.py not working as expected

Great, I'll try that. Is there any way to have the find lines make a color preference? Or even to flag the color of the lines that find lines found? (I suppose I could do a blob detection with ROIs defined by the lines and then sort the lines by that, but I'm wondering if color choice is built into ...
by zlite
Mon May 15, 2017 12:26 pm
Forum: General Topics
Topic: lines.py not working as expected
Replies: 33
Views: 10250

Re: lines.py not working as expected

I tried this code this weekend at the DIY Robocars race, but couldn't get it to recognize the painted lines (either white or color) as lines. I don't see where to tune the example code for color or grayscale thresholds (the "threshold" in this means something else: "img.find_line_segments(threshold ...
by zlite
Wed May 10, 2017 6:29 pm
Forum: General Topics
Topic: lines.py not working as expected
Replies: 33
Views: 10250

Re: lines.py not working as expected

:D
by zlite
Wed May 10, 2017 2:49 pm
Forum: General Topics
Topic: lines.py not working as expected
Replies: 33
Views: 10250

Re: lines.py not working as expected

@kwagyeman ETA on posting the new code? We've got a race on Sat and I'll need a day to test. Possibly by EOD Thurs?
by zlite
Sun May 07, 2017 11:27 pm
Forum: General Topics
Topic: JeVois -- a potential competitor?
Replies: 11
Views: 4364

Re: JeVois -- a potential competitor?

Good catch on the KB/MB mixup -- fixed.

Can't wait for the line following code. Our next race is on Sat. Any chance we can debut it then?
by zlite
Sun May 07, 2017 6:24 pm
Forum: General Topics
Topic: JeVois -- a potential competitor?
Replies: 11
Views: 4364

Re: JeVois -- a potential competitor?

My review of the Jevois is here (spoiler: way too hard to use as it is, but with access to the onboard Linux command line could be a contender):
https://diyrobocars.com/2017/05/07/firs ... on-module/
by zlite
Sun Apr 30, 2017 1:19 pm
Forum: Technical Discussion
Topic: Request for Road Navigation example
Replies: 4
Views: 1362

Re: Request for Road Navigation example

Sounds very smart. Thanks for thinking about this and explaining!
by zlite
Sat Apr 29, 2017 11:44 pm
Forum: Technical Discussion
Topic: Request for Road Navigation example
Replies: 4
Views: 1362

Re: Request for Road Navigation example

The main C library is here, which seems to be based on standard OpenCV calls:
https://github.com/jevois/jevoisbase/tr ... RoadFinder
by zlite
Sat Apr 29, 2017 4:42 pm
Forum: Technical Discussion
Topic: Request for Road Navigation example
Replies: 4
Views: 1362

Request for Road Navigation example

Kwabena: Do you think you could port the open source Jevois Road Navigation example to OpenMV?

It'd described here:
http://jevois.org/moddoc/RoadNavigation/modinfo.html

The code is here:
https://github.com/jevois/jevoisbase/tr ... Navigation
by zlite
Sat Apr 29, 2017 11:00 am
Forum: General Topics
Topic: JeVois -- a potential competitor?
Replies: 11
Views: 4364

Re: JeVois -- a potential competitor?

The only way you can power it is with a Mini USB cable (there are no exposed power pins), so in an embedded environment you're going to have to hack together a USB power cable.
by zlite
Sat Apr 29, 2017 1:22 am
Forum: General Topics
Topic: JeVois -- a potential competitor?
Replies: 11
Views: 4364

Re: JeVois -- a potential competitor?

My JeVois just showed up. It's the craziest thing. HW: Tiny (smaller than OpenMV, even including the fan) with a cheap 1.3MP camera sensor and software loaded on a SD card that you have to burn, like a RaspberryPi. You can connect via Serial-over-USB for video streaming, but to get other data out, y...
by zlite
Mon Apr 17, 2017 6:15 pm
Forum: Project Discussion
Topic: Line Following - Blob Spotting/Decoding robot
Replies: 42
Views: 11219

Re: Line Following - Blob Spotting/Decoding robot

Thanks for sharing that! Any particular reason why you didn't add a PID control loop to smooth it?
by zlite
Wed Apr 12, 2017 10:30 am
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 10357

Re: AP Mode With WiFi Shield?

My question is how you get code to display in an Open Terminal at all. There's no obvious way to load a file in or even type or paste code. What am I missing?

-c
by zlite
Wed Apr 12, 2017 2:17 am
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 10357

Re: AP Mode With WiFi Shield?

Update2: AP mode works on one Windows machine but not the other. Curiouser and curiouser.

Quick aside: can you run code from the Open Terminal window? I see a Run button, but no obvious way to open a Python file or even paste or type code into the terminal
by zlite
Wed Apr 12, 2017 2:10 am
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 10357

Re: AP Mode With WiFi Shield?

Update: AP mode works on Linux. My problems have been on Windows. Maybe something to do with the built-in Windows firewall, as @iabdalkader suggests
by zlite
Wed Apr 12, 2017 12:47 am
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 10357

Re: AP Mode With WiFi Shield?

Thanks for the suggestions. Your non-AP script works fine over WiFi in Station Mode, but nothing works in AP mode for me.
by zlite
Tue Apr 11, 2017 11:39 pm
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 10357

Re: AP Mode With WiFi Shield?

I'm sure I'm doing something stupid, but can't figure out what it is. Here's what I'm doing (not connected to any other network, via Ethernet or Wifi): 1) Load the program you supplied, 2) Send to Cam over USB and run it 3) Connect to MVCAM wifi AP 4) Create a new Open Terminal with TCP connection a...
by zlite
Tue Apr 11, 2017 9:00 pm
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 10357

Re: AP Mode With WiFi Shield?

Just a ping to nag @kwagyeman to please take a look at this. I'm stalled until this gets fixed (or someone tells me how to do it properly -- right now it's undocumented, so I'm just guessing)
by zlite
Mon Apr 10, 2017 10:39 pm
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 10357

Re: AP Mode With WiFi Shield?

Even if you skip Step 3 (testing on a browser, and thus opening a second connection) it still fails. This is the error:

Waiting for connections..
Connected to 192.168.1.100:14960
socket error: 134642565
Waiting for connections..
socket error: -116
....
[repeat]
by zlite
Mon Apr 10, 2017 8:51 pm
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 10357

Re: AP Mode With WiFi Shield?

I assume the process is as follows: 1) OpenMV is running Mpeg AP streaming example 2) Connect to OpenMV AP via WiFi 3) Test the Mpeg stream in a browser at the given IP: 192.168.1.1:8080 4) Create a new Open Terminal using TCP at the same IP: 192.168.1.1:8080 5) Everything magically works I'm fine u...
by zlite
Sun Apr 09, 2017 7:00 pm
Forum: Technical Discussion
Topic: AP Mode With WiFi Shield?
Replies: 34
Views: 10357

Re: AP Mode With WiFi Shield?

When connecting to the cam in WiFI AP mode via the Open Terminal, should we be using UDP or TCP mode? And what port number? I tried both modes with port 8080 that's used in the MPEG streaming demo, but that didn't work. Apologies if this is in the documentation somewhere. I looked by couldn't find it
by zlite
Sun Apr 09, 2017 6:29 pm
Forum: Project Discussion
Topic: Servo Shield
Replies: 3
Views: 1473

Re: Servo Shield

If you're looking for other shields, I'd love to have you make this Arduino shield. Along with adding 5 servo PMW channels (expandable to 12), it also adds 4 analog sensor inputs and any PWM channel can be used as a digital sensor input, too. It uses a standard Arduino Mini, so it has all the other ...
by zlite
Sat Apr 08, 2017 4:20 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 7744

Re: Which pins can't be used when using the Wifi board?

BTW, I tried both 3.3v and 5v Ardiuno Minis and they both worked fine (I guess the logic lines are tolerant of both). So might as well go with the 5v and get the faster clock speed
by zlite
Sat Apr 08, 2017 2:26 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 7744

Re: Which pins can't be used when using the Wifi board?

Slight update. I decided to move the Serial Rx and Tx pins on the Arduino that talk to the OpenMV to SoftwareSerial on Pins 2 and 3, so you can still use the hardware serial Rx and Tx pins for the FTDI cable to program it and monitor serial output while it's attached to OpenMV:
by zlite
Fri Apr 07, 2017 10:11 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 7744

Re: Which pins can't be used when using the Wifi board?

Here's the real thing. So far so good!
by zlite
Mon Apr 03, 2017 12:59 pm
Forum: Project Discussion
Topic: Line Following - Blob Spotting/Decoding robot
Replies: 42
Views: 11219

Re: Line Following - Blob Spotting/Decoding robot

Going fast was the point of the race ;-) Winning drunk is still winning!
by zlite
Mon Apr 03, 2017 2:13 am
Forum: Project Discussion
Topic: Line Following - Blob Spotting/Decoding robot
Replies: 42
Views: 11219

Re: Line Following - Blob Spotting/Decoding robot

This code with the new M7 OpenMV cam did great this weekend at the Thunderhill Self Racing Cars/DIY Robocars race (https://www.meetup.com/DIYRobocars/events/237232241/). Came in 2nd, beating out nVidia TX2 cars and a lot of RaspberryPi 3s. Here's a practice lap: https://youtu.be/3ANMg0j5BNE The code...
by zlite
Sun Apr 02, 2017 10:41 pm
Forum: Technical Discussion
Topic: openmv can be achieve the car lane line detection?
Replies: 4
Views: 1576

Re: openmv can be achieve the car lane line detection?

This code with the new M7 OpenMV cam did great this weekend at the Thunderhill Self Racing Cars/DIY Robocars race (https://www.meetup.com/DIYRobocars/events/237232241/). Came in 2nd, beating out nVidia TX2 cars and a lot of RaspberryPi 3s. Here's a practice lap: https://youtu.be/3ANMg0j5BNE The code...
by zlite
Tue Mar 28, 2017 2:49 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 7744

Re: Which pins can't be used when using the Wifi board?

You're probably right, but I've been traumatized by years of fighting I2C glitches and timing bugs in drones and I've got a bit of PTSD there (we now have a rule to only use SPI for mission critical stuff and we use Serial for everything else). At the end of the day, I always come back to Serial, wh...
by zlite
Mon Mar 27, 2017 11:49 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 7744

Re: Which pins can't be used when using the Wifi board?

Yes, the shield is back-to-back with the OpenMV, so you can get access to the Arduino reset button and the PWM pins. I think I've got the RX and TX pins right. I've labelled the OpenMV pins now so it should be easier to follow:
by zlite
Mon Mar 27, 2017 1:34 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 7744

Re: Which pins can't be used when using the Wifi board?

As you suggested, I've tweaked the design to power the PWM rail from the shared VIN/Raw of both OpenMV and the Arduino, rather than VCC, to avoid stressing the power regulators.
by zlite
Mon Mar 27, 2017 10:39 am
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 7744

Re: Which pins can't be used when using the Wifi board?

Nice looking board! The reason I'm using an Arduino is that I'm also using the OpenMV Wifi board, which conflicts with almost all the pins but UART3, so I only output serial. Also I need to have some ADCs in for sensor reading. And I only need 2-3 servos. I'm guessing that your board isn't designed ...
by zlite
Mon Mar 27, 2017 12:05 am
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 7744

Re: Which pins can't be used when using the Wifi board?

The tricky bit will be how to handle the 3.3v vs 5v issue between the Cam and the Arduino. The Arduino Mini comes in a 3.3v variant, which is probably the way to go, but I'm slightly worried about plugging 5v ESCs/BECs into that servo rail to power the servos. Alternatively, I can use the 5v Arduino...
by zlite
Sun Mar 26, 2017 11:45 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 7744

Re: Which pins can't be used when using the Wifi board?

Here's the first pass at an Arduino shield (using the Arduino Mini)

https://circuits.io/circuits/4446963-op ... ino-shield
by zlite
Sun Mar 26, 2017 5:41 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 7744

Re: Which pins can't be used when using the Wifi board?

Great. Option 1 it is. I'll share the design files later today
by zlite
Sat Mar 25, 2017 8:22 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 7744

Re: Which pins can't be used when using the Wifi board?

Sweet! I've got to spin a custom shield for the cam one way or another to do both wifi and robot control. Given what you've now done, which of these two makes more sense? 1) Custom Arduino shield that communicates with the OpenMV via UART 3 and adds a bunch of I/O (downside: need to program the Ardu...
by zlite
Fri Mar 24, 2017 4:08 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 7744

Re: Which pins can't be used when using the Wifi board?

Got it. That (serial to an Arduino to control motors and servos) was the way I had it before, but I was seduced by the extra PWM pin in the M7 and thought I could now do it all with one board. So be it -- back to Plan A while I wait for the next board. If I have to have a second board, I'd rather ha...
by zlite
Fri Mar 24, 2017 4:02 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 7744

Re: Which pins can't be used when using the Wifi board?

wifi-pinout.png
wifi-pinout.png (847.93 KiB) Viewed 7739 times
Looking more at this, it looks like the WiFi board does nuke most of those other pins. It would be a bummer if it actually does disable two of the three PWMs (P7 and P8) and the ADC (P6) in operation. Am I reading that right?

-c
by zlite
Fri Mar 24, 2017 2:50 pm
Forum: Technical Discussion
Topic: Which pins can't be used when using the Wifi board?
Replies: 30
Views: 7744

Which pins can't be used when using the Wifi board?

When you're stacking add-on boards, I assume there can be conflict between shared pins. I've looked at the Wifi board schematic and can see which pins are connected, but am not sure how they're used in the software and if those pins are totally out of commission for any other use if that board is at...
by zlite
Wed Mar 22, 2017 11:45 am
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 28
Views: 10583

Re: Python script to output MAVLink

Awesome. So basically, each script turns the OpenMV board into a different MAVLink compatible sensor: optical flow and april tag, respectively.

I'll try it with a Pixhawk and see if that works.
by zlite
Tue Mar 21, 2017 6:49 pm
Forum: Technical Discussion
Topic: Python script to output MAVLink
Replies: 28
Views: 10583

Re: Python script to output MAVLink

I'm one of the MAVlink contributors. What's the use case you have in mind for this? Typically, if you want to work in MAVlink, you might be better connecting OpenMV to a Pixhawk or RaspberryPi running a native MAVLink stack such as PX4 or APM and let it do the translation.

-c

Go to advanced search