Search found 50 matches

by ScottM
Sat Aug 17, 2019 9:45 pm
Forum: Project Discussion
Topic: Minimal detect AprilTag (don't need tag ID) with better range?
Replies: 11
Views: 4068

Re: Minimal detect AprilTag (don't need tag ID) with better range?

Sounds exciting to go from VGA to 2MP and 5MP cameras. How long before you can field test them?
by ScottM
Sat Aug 17, 2019 9:04 am
Forum: Technical Discussion
Topic: Motor and LCD Shield conflicting
Replies: 25
Views: 3780

Re: Motor and LCD Shield conflicting

There is a workaround if you don't mind adding more hardware. Connect the LCD shield to the camera and use a couple of the unused pins from the camera to send commands to an Arduino Nano or UNO and have it drive the motor(s). For example, P4 and P5 are free and they are serial (UART) pins, so you ca...
by ScottM
Fri Aug 16, 2019 7:59 pm
Forum: Project Discussion
Topic: Minimal detect AprilTag (don't need tag ID) with better range?
Replies: 11
Views: 4068

Re: Minimal detect AprilTag (don't need tag ID) with better range?

"We will have a DRAM camera coming out soon which will have no limits on this." I'm really struggling trying to design my robot to detect April Tags on the floor and to navigate from one to another. The problem is the limited field of view because of the 64K memory limit. I want to place the tags no...
by ScottM
Mon Jul 22, 2019 5:05 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 8262

Re: Support for I2C LCD 4x20 displays

I agree. All I would be doing is sending strings one way to the display.
by ScottM
Mon Jul 22, 2019 3:57 pm
Forum: Technical Discussion
Topic: Saving scripts with .py extension
Replies: 1
Views: 840

Saving scripts with .py extension

This is just a small issue, but when you save a script, the IDE should append .py on it automatically. If you enter just the script name, it saves it without an extension and in the IDE, it all turns grey.
by ScottM
Mon Jul 22, 2019 2:38 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 8262

Re: Support for I2C LCD 4x20 displays

I suppose I could, but I have a bunch of i2c LCDs laying around, so it seemed like a reasonable idea to use them. I know that it seems excessive, but I have plenty of Arduinos too. I could send my strings to the Arduino and let it handle the display. That would offload some of the work I need the Op...
by ScottM
Mon Jul 22, 2019 2:08 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 8262

Re: Support for I2C LCD 4x20 displays

Thanks for responding. I was trying to change the calls this morning, but I ran into some other problems. In his pyb_i2c_lcd_test program, I changed from pyb import I2C to from machine import I2C, Pin and i2c = I2C(2, I2C.MASTER) to i2c = I2C(sda=Pin('P5'), scl=Pin('P4')) but in the called module py...
by ScottM
Mon Jul 22, 2019 10:46 am
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 8262

Re: Support for I2C LCD 4x20 displays

This works; # I2C Scanner Basic - By: Scott Murchison - Fri Jul 19 2019 # simple program to scan I2C bus for connected devices from machine import I2C, Pin i2c = I2C(sda=Pin('P5'), scl=Pin('P4')) print('Scanning i2c bus...') devices = i2c.scan() if len(devices) == 0: print("No i2c devices found !") ...
by ScottM
Mon Jul 22, 2019 8:30 am
Forum: Technical Discussion
Topic: help please
Replies: 5
Views: 10962

Re: help please

I'd like to see a Bluetooth shield as well. I don't need it to send pictures, but to signal other parts of my robot that the camera sees something.
by ScottM
Fri Jul 19, 2019 10:32 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 8262

Re: Support for I2C LCD 4x20 displays

Sure. I'll get back to you when I get a chance to try it.
by ScottM
Fri Jul 19, 2019 4:45 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 8262

Re: Support for I2C LCD 4x20 displays

First test:

Code: Select all

from machine import I2C
i2c = I2C(freq=400000)
devices = i2c.scan()
print(devices)
I get TypeError: 'scl' argument required


Second test:

Code: Select all

from machine import I2C
i2c = I2C(2,4,5,freq=400000)
devices = i2c.scan()
print(devices)
I get TypeError: extra positional arguments given
by ScottM
Fri Jul 19, 2019 4:30 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 8262

Re: Support for I2C LCD 4x20 displays

I'm trying several programs using

from machine import I2C

but no success so far
by ScottM
Fri Jul 19, 2019 3:10 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 8262

Re: Support for I2C LCD 4x20 displays

I added 10K pullups to SDA and SCL, but still no success. My scan program still doesn't find any I2C devices. # I2C Scanner Basic - By: Scott Murchison - Fri Jul 19 2019 # simple program to scan I2C bus for connected devices from pyb import I2C i2c = I2C(2, I2C.MASTER) print('Scan i2c bus...') devic...
by ScottM
Fri Jul 19, 2019 2:39 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 8262

Re: Support for I2C LCD 4x20 displays

I have SDA to SDA and SCL to SCL.

I'm not sure if the boards have pullup resistors. If I recall, they should be 4.7 - 10 kohm?

Scott
by ScottM
Fri Jul 19, 2019 11:44 am
Forum: Technical Discussion
Topic: LCD shield compatibility with servo and P&T shields
Replies: 4
Views: 4168

Re: LCD shield compatibility with servo and P&T shields

I had a dream that I could use the camera with a pan/tilt shield and LCD display. I wanted to mount the camera on a pan/tilt servo setup and have it find and track an April tag and automatically center. I can do that, but I thought that it would be cool to have the display show a live preview of wha...
by ScottM
Fri Jul 19, 2019 10:43 am
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 8262

Re: Support for I2C LCD 4x20 displays

Actually, I think you mean pyb_i2c_lcd_test.py, which calls pyb_i2c_lcd.py. I'm still not able to get anything to appear on the LCD display, so I'm doing more advanced troubleshooting. Hopefully something will come of this to serve as examples for other users. Last night, I tested my LCD displays by...
by ScottM
Fri Jul 19, 2019 10:24 am
Forum: Project Discussion
Topic: Project Idea: Automatically point camera at target
Replies: 15
Views: 2352

Re: Project Idea: Automatically point camera at target

Hi,

Now I see it in the bottom right corner. Thanks for pointing this out.

Scott
by ScottM
Thu Jul 18, 2019 3:43 pm
Forum: Project Discussion
Topic: Project Idea: Automatically point camera at target
Replies: 15
Views: 2352

Re: Project Idea: Automatically point camera at target

I used the Run Bootloader command to install firmware.bin and it worked. I had the camera pointed at a sunny wall and it was overexposed with the helloworld example running. With the new firmware running, the exposure is better, i.e. darker with better contrast. I will run more tests on it. Why not ...
by ScottM
Thu Jul 18, 2019 3:26 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 8262

Re: Support for I2C LCD 4x20 displays

Most of the samples are for different boards (Adafruit, Grove, Node, ESP32 or PY boards).
by ScottM
Thu Jul 18, 2019 3:21 pm
Forum: Project Discussion
Topic: Project Idea: Automatically point camera at target
Replies: 15
Views: 2352

Re: Project Idea: Automatically point camera at target

There are 11 files in the OPENMV4 directory. Are you saying that I only need the firmware.bin file?

Also, what do you mean by "see the OMV module"?
by ScottM
Thu Jul 18, 2019 3:05 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 8262

Re: Support for I2C LCD 4x20 displays

smbus isn't part of the source. Here is what is in there. The lcd1 and lcd2 pictures show what is in the source once downloaded. The openmv_disk is what I copied over to the camera. When I try to run 12c_lcd_test.py, I get the message ImportError: no module named 'smbus'. Also, if you look at his se...
by ScottM
Thu Jul 18, 2019 2:17 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 8262

Re: Support for I2C LCD 4x20 displays

His install requires smbus. I am running the IDE on my Windows 10 machine. How do I install smbus?
by ScottM
Thu Jul 18, 2019 1:47 pm
Forum: Project Discussion
Topic: Project Idea: Automatically point camera at target
Replies: 15
Views: 2352

Re: Project Idea: Automatically point camera at target

Thank you. First, is there a way to read the version of the firmware currently running on the camera? Also, I figured out that I have to use the Run Bootloader command in the IDE to update the firmware,but which files do I download to my PC first?
by ScottM
Wed Jul 17, 2019 3:15 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 8262

Re: Support for I2C LCD 4x20 displays

I cloned his code samples and copied them to a directory on my Windows PC. I try running a sample program and it can't find the modules lcdapi and i2clcd. There are .py files by those names in the same directory as the test program. How do I get the IDE to find them? """Implements a HD44780 characte...
by ScottM
Wed Jul 17, 2019 8:58 am
Forum: Technical Discussion
Topic: First time with servos not going well
Replies: 4
Views: 1112

Re: First time with servos not going well

Thanks Nyamekye,

That sample works perfectly and is a lot simpler. Perhaps you can update the comments in the other sample to make it clearer to users which code works for the servo shield vs the pan/tilt shield. On to my next learning challenge. This is fun.

Scott
by ScottM
Tue Jul 16, 2019 4:58 pm
Forum: Project Discussion
Topic: Project Idea: Automatically point camera at target
Replies: 15
Views: 2352

Re: Project Idea: Automatically point camera at target

I'm not good with Github. How do I get the firmware upgrade to test image quality?
by ScottM
Tue Jul 16, 2019 3:46 pm
Forum: Technical Discussion
Topic: First time with servos not going well
Replies: 4
Views: 1112

Re: First time with servos not going well

I tried again with one of those tiny pan/tilt kits, but I get the same error.
by ScottM
Tue Jul 16, 2019 3:33 pm
Forum: Technical Discussion
Topic: First time with servos not going well
Replies: 4
Views: 1112

First time with servos not going well

I am trying to get two servos to work with the pan/tilt shield, but so far it isn't working. I am brand new to Micropython, so it might be a learning issue. Here is what I did. I connected a 5.2Vdc power supply to the servo bat pins and confirmed that it carries through to the Vin and GND pins. I co...
by ScottM
Mon Jul 15, 2019 3:48 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 8262

Re: Support for I2C LCD 4x20 displays

Thanks Nyamekye
by ScottM
Mon Jul 15, 2019 11:01 am
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 8262

Support for I2C LCD 4x20 displays

I have a lot of 4 row x 20 character I2C LCD displays kicking around. Are these supported by OpenMV? Personally I don't see why not, but I couldn't find any sample code. I'm considering using one to give status readouts from one of my OpenMV cameras.
by ScottM
Thu Jul 04, 2019 10:51 am
Forum: Technical Discussion
Topic: Tough to get exposure correct
Replies: 0
Views: 1647

Tough to get exposure correct

I'm using the QRCode sample, modified slightly, to read a large QR Code. The problem I'm having is how difficult it is to get the exposure right so that the code can be read. Ideally, I want to use a properly tuned auto exposure, because I'm sure that the lighting conditions will change in my lab ov...
by ScottM
Thu Jul 04, 2019 10:00 am
Forum: Project Discussion
Topic: Project Idea: Automatically point camera at target
Replies: 15
Views: 2352

Re: Project Idea: Automatically point camera at target

I worked on this yesterday and got it working to detect a certain green square on the wall roughly 6 feet from the camera. I had to fiddle with the thresholds a bit, but the technique of selecting the target color patch with the mouse and using the LAB Color Space histograms makes it easy. I am havi...
by ScottM
Wed Jul 03, 2019 12:40 pm
Forum: Project Discussion
Topic: Project Idea: Automatically point camera at target
Replies: 15
Views: 2352

Project Idea: Automatically point camera at target

I plan to mount the camera on a pan/tilt base and use the pan/tilt shield. I want to find an object and automatically pan and tilt the camera to center the object in the FOV. I was thinking that the object could be an April Tag, but with memory limiting the frame size, I'm thinking that I could use ...
by ScottM
Wed Jun 26, 2019 2:01 pm
Forum: General Topics
Topic: It does not focus with Ultra Wide Angle Lens
Replies: 17
Views: 10316

Re: It does not focus with Ultra Wide Angle Lens

I think that it is a known issue that some of the lens mounts cannot accommodate the ultra wide lens. You can screw it in most of the way, but not enough to get proper focus. The replacement mounts they sell for $1 apiece seem to work fine.
by ScottM
Wed Jun 26, 2019 9:27 am
Forum: Technical Discussion
Topic: Issue with lens fit
Replies: 5
Views: 8191

Re: Issue with lens fit

I'm okay with that. I resolved my issue by mixing and matching lenses and mounts. If I have a problem in the future, it can be dealt with at that time.
by ScottM
Tue Jun 25, 2019 1:57 pm
Forum: Technical Discussion
Topic: Issue with lens fit
Replies: 5
Views: 8191

Re: Issue with lens fit

I tested my different lenses in the different lens holders and here is what I found. The thread on the wide angle lens is too big, and won't thread into the stock lens mounts. They do, however, thread into the spare mounts I bought, which are also a bit too big. To use the wide angle lenses, I have ...
by ScottM
Mon Jun 24, 2019 5:03 pm
Forum: Technical Discussion
Topic: Issue with lens fit
Replies: 5
Views: 8191

Issue with lens fit

I purchased three of the H7 cameras and a whole bunch of accessories to experiment with. I bought a couple of the Ultra Wide Angle lenses and for backup, I bought a couple of spare lens mounts. I'm glad I bought the extra lens mounts. The wide angle lenses do not easily thread into the lens mounts t...
by ScottM
Tue Jun 18, 2019 4:43 pm
Forum: Technical Discussion
Topic: Frame Rate April Tags
Replies: 15
Views: 10492

Re: Frame Rate April Tags

Thanks Nyamekye for your responses. You are very helpful indeed. I should have bought the wide angle lens when I bought a couple of the cameras. I will order one and experiment with different size April Tags and the greyscale and lens correction settings you suggest. I will upload pictures and more ...
by ScottM
Tue Jun 18, 2019 1:17 pm
Forum: Technical Discussion
Topic: Frame Rate April Tags
Replies: 15
Views: 10492

Re: Frame Rate April Tags

I see. So that's why it fails sometimes. I guess in those instances, the camera sees more edges. I can give you some information about what I'm trying to do. I want to buy a mecanum type robot and have the camera under it pointing down. On the floor, I want to place April tags space 4-6" apart in a ...
by ScottM
Tue Jun 18, 2019 11:55 am
Forum: Technical Discussion
Topic: Frame Rate April Tags
Replies: 15
Views: 10492

Re: Frame Rate April Tags

I set the resolution to 200x200 and it runs for awhile and then I sometimes get a memory error that reads "Memory Error: Out of temporary Frame Buffer Heap Memory! Please reduce the resolution of the image you are running this algorithm on to bypass this issue". Instead of reducing the window size, ...
by ScottM
Thu Jun 13, 2019 4:46 pm
Forum: Technical Discussion
Topic: Frame Rate April Tags
Replies: 15
Views: 10492

Re: Frame Rate April Tags

I think it would be great to have more RAM available. How about if we could use the micro SD card as memory with the caveat that we'd have to reduce the frame rate? I'd be fine with 5-10 fps if I could use the entire 640 x 480 sensor resolution. I'd use a 1 or 2 GB card.
by ScottM
Thu Jun 13, 2019 1:09 pm
Forum: Technical Discussion
Topic: Frame Rate April Tags
Replies: 15
Views: 10492

Re: Frame Rate April Tags

I found something disturbing. If I use windowing, I cannot decode April Tags. Why is this?

sensor.set_framesize(sensor.VGA)
sensor.set_windowing((240,240))

Scott
by ScottM
Thu Jun 13, 2019 12:47 pm
Forum: Technical Discussion
Topic: Frame Rate April Tags
Replies: 15
Views: 10492

Re: Frame Rate April Tags

I did a search and discovered a syntax error. I needed 2 sets of brackets. Why, I have no idea.

sensor.set_windowing((240,240))
by ScottM
Thu Jun 13, 2019 12:38 pm
Forum: Technical Discussion
Topic: Frame Rate April Tags
Replies: 15
Views: 10492

Re: Frame Rate April Tags

With respect to windowing, I understand, but I am getting an error. I entered the following lines; sensor.set_framesize(sensor.VGA) sensor.set_windowing(240,240) to create a 240x240 window centered inside a VGA frame. I get the following error. TypeError: function takes 1 positional arguments but 2 ...
by ScottM
Tue Jun 11, 2019 11:23 am
Forum: Technical Discussion
Topic: Frame Rate April Tags
Replies: 15
Views: 10492

Re: Frame Rate April Tags

I'm trying to maximize the frame size for detecting April tags. How do I set it for 256x256 when the sensor.set_framesize command doesn't have that as an option?

Alternatively, can I go with a larger frame size if I switch to Datamatrix or QR Codes?

Thanks.
by ScottM
Thu May 30, 2019 3:57 pm
Forum: General Topics
Topic: Camera FOV
Replies: 7
Views: 5590

Re: Camera FOV

https://openmv.io/collections/lenses This lens gives your OpenMV Cam the ability to see a wider field-of-view (FOV). The standard lens that ships with your OpenMV Cam has a 115° FOV which is good, but, not great for security applications. This lens has a 185° FOV so your OpenMV Cam can literally see...
by ScottM
Thu May 30, 2019 3:41 pm
Forum: General Topics
Topic: Camera FOV
Replies: 7
Views: 5590

Re: Camera FOV

I just found the page with lens specifications. Duh.
by ScottM
Thu May 30, 2019 3:30 pm
Forum: General Topics
Topic: Camera FOV
Replies: 7
Views: 5590

Re: Camera FOV

I missed it. I'll look again. Thanks.
by ScottM
Thu May 30, 2019 2:18 pm
Forum: General Topics
Topic: Camera FOV
Replies: 7
Views: 5590

Camera FOV

I'd like know what the horizontal and vertical field of view is for the stock lens (in degrees). I need to use the camera at close range to read QR Codes or April tags that are potentially only a few inches away.

Go to advanced search