Search found 62 matches

by ScottM
Thu Nov 14, 2019 11:01 am
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 29
Views: 9981

Re: Support for I2C LCD 4x20 displays

This is an old issue and I am now building my robot, so I want to check to see if OpenMV supports a 2 line or 4 line I2C LCD display. I have a solution whereby the OpenMV camera sends serial data to an Arduino and the Arduino takes care of the display, but a more elegant option would be to connect t...
by ScottM
Fri Nov 01, 2019 3:56 pm
Forum: Technical Discussion
Topic: Frame Rate April Tags
Replies: 18
Views: 11319

Re: Frame Rate April Tags

I look forward to trying it, but for this robot it looks like I have to go with what I have. I have another camera question, but I will ask it in a new post for the benefit of all.
by ScottM
Fri Nov 01, 2019 10:05 am
Forum: Project Discussion
Topic: Minimal detect AprilTag (don't need tag ID) with better range?
Replies: 21
Views: 6733

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

This is great news. Just yesterday, I cut a 80 x 80 mm hole in my Superdroids robot base and designed and printed a mount for the OpenMV camera. The camera lens is 42 mm above the base and approximately 125 mm off the floor. It looks through the hole to April tags on the floor. You can see what it l...
by ScottM
Thu Oct 31, 2019 9:37 pm
Forum: Technical Discussion
Topic: Frame Rate April Tags
Replies: 18
Views: 11319

Re: Frame Rate April Tags

Any update on new cameras with more memory?
by ScottM
Wed Oct 30, 2019 1:02 pm
Forum: Project Discussion
Topic: Minimal detect AprilTag (don't need tag ID) with better range?
Replies: 21
Views: 6733

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

It has been awhile since I posted, so I would like an update. I am building my robot and I need to know if I can get a camera to detect an April tag with a bigger window than is currently allowed. Do your 2MP and 5MP cameras have more memory for processing April tags?
by ScottM
Mon Sep 23, 2019 5:00 pm
Forum: Technical Discussion
Topic: More defective LCDs
Replies: 2
Views: 320

Re: More defective LCDs

I'm pretty sure that they worked when I first received them.
by ScottM
Fri Sep 20, 2019 3:11 pm
Forum: Technical Discussion
Topic: More defective LCDs
Replies: 2
Views: 320

More defective LCDs

I have two LCD shields and both have problems with color. Red shows as blue. From similar posts, you want the QRCodes to send to your CM, so I attached them.
20190920_145727.jpg
20190920_145744.jpg
20190920_145120.jpg
by ScottM
Fri Sep 06, 2019 3:07 pm
Forum: Technical Discussion
Topic: Creating custom AprilTags
Replies: 3
Views: 307

Re: Creating custom AprilTags

I'll use TAG36H10 and encode 4 digits.
by ScottM
Fri Sep 06, 2019 3:00 pm
Forum: Technical Discussion
Topic: Creating custom AprilTags
Replies: 3
Views: 307

Re: Creating custom AprilTags

How many digits can I encode in one Apriltag? If I have to, I can live without the "CX" and just put in "1021".
by ScottM
Fri Sep 06, 2019 10:55 am
Forum: Technical Discussion
Topic: Creating custom AprilTags
Replies: 3
Views: 307

Creating custom AprilTags

Does anyone know of a website or program I can use to generate my own custom AprilTags? I want to encode strings like "CX1021".
by ScottM
Tue Sep 03, 2019 2:55 pm
Forum: Project Discussion
Topic: Minimal detect AprilTag (don't need tag ID) with better range?
Replies: 21
Views: 6733

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

I'm not a systems designer, but shouldn't SDRAM be able to run at the processor speed, which is 480MHz? It sounds like you are saying it runs at 20MHz.
by ScottM
Tue Sep 03, 2019 10:26 am
Forum: Project Discussion
Topic: Minimal detect AprilTag (don't need tag ID) with better range?
Replies: 21
Views: 6733

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

I want my robot to navigate across a room between two spots. I'm thinking of mounting a camera at ceiling height (9') and having it identify two locations on the floor, plus the robot itself. I haven't tested it yet, so I'm not sure if using April tags or color spots will be the best option. I'm pre...
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: 21
Views: 6733

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: 35
Views: 7924

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: 21
Views: 6733

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: 29
Views: 9981

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

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: 29
Views: 9981

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: 29
Views: 9981

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: 29
Views: 9981

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

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: 29
Views: 9981

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: 29
Views: 9981

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: 29
Views: 9981

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: 29
Views: 9981

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: 29
Views: 9981

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

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: 29
Views: 9981

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

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

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: 29
Views: 9981

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

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: 29
Views: 9981

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: 29
Views: 9981

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

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: 29
Views: 9981

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

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

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

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

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: 29
Views: 9981

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: 29
Views: 9981

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: 2
Views: 3773

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

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

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

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

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

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

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...

Go to advanced search