Search found 70 matches

by ScottM
Mon Dec 16, 2019 9:03 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 30
Views: 10520

Re: Support for I2C LCD 4x20 displays

I use these LCD displays. They are pretty cheap and available from many websites. https://www.ebay.ca/itm/IIC-I2C-TWI-200 ... 2364303996
by ScottM
Mon Dec 16, 2019 8:59 pm
Forum: Technical Discussion
Topic: Communication with Arduino Mega - Serial or I2C?
Replies: 7
Views: 345

Re: Communication with Arduino Mega - Serial or I2C?

Yes, I found that post after I made my request. So you see from my code that I am using the Arduino Mega to handle the I2C LCD display. I tried months ago to figure out how to get the OpenMV to display on it but couldn't figure it out. If someone has OpenMV working with a common I2C LCD display, I'd...
by ScottM
Mon Dec 16, 2019 2:16 pm
Forum: Project Discussion
Topic: Solved: OpenMV communications with Arduino
Replies: 5
Views: 5707

Re: Solved: OpenMV communications with Arduino

How to you define "output" in the Arduino sketch?
by ScottM
Mon Dec 16, 2019 1:48 pm
Forum: Project Discussion
Topic: Solved: OpenMV communications with Arduino
Replies: 5
Views: 5707

Re: Solved: OpenMV communications with Arduino

Just found this. I will build my Arduino Mega to two OpenMV cameras using some of this code. Thanks.
by ScottM
Mon Dec 16, 2019 1:37 pm
Forum: Technical Discussion
Topic: Communication with Arduino Mega - Serial or I2C?
Replies: 7
Views: 345

Re: Communication with Arduino Mega - Serial or I2C?

How to I code the OpenMV to read serial data from the Arduino? I want to be able to send commands or data from Arduino to OpenMV, such as for a quick check to see if it's available.
by ScottM
Mon Dec 16, 2019 1:35 pm
Forum: Technical Discussion
Topic: Communication with Arduino Mega - Serial or I2C?
Replies: 7
Views: 345

Re: Communication with Arduino Mega - Serial or I2C?

As promised, here is my code for the OpenMV. # P4 UART3 tx goes to Mega RX1 on pin 19 # P5 UART3 rx goes to Mega TX1 on pin 18 import time from pyb import UART uart = UART(3, 9600, timeout_char=1000) print("Starting test") for x in range(0, 6): print (x) uart.write("Cycle # %d \n" % x) #send text to...
by ScottM
Mon Dec 16, 2019 7:42 am
Forum: Technical Discussion
Topic: Communication with Arduino Mega - Serial or I2C?
Replies: 7
Views: 345

Re: Communication with Arduino Mega - Serial or I2C?

I have serial comm working, but it stops randomly, so I'm leaning towards I2C. I can post my code for Arduino and OpenMV with regards to the serial comm portion.
by ScottM
Fri Dec 13, 2019 3:43 pm
Forum: Technical Discussion
Topic: Communication with Arduino Mega - Serial or I2C?
Replies: 7
Views: 345

Communication with Arduino Mega - Serial or I2C?

I'm building a robot that will use an Arduino Mega as the controller and there will be two OpenMV H7 cameras that I need to communicate bidirectionally with. What is the best protocol to use, I2C or Serial? I have searched this forum and found lots of old posts and my own experiments using serial ar...
by ScottM
Thu Nov 14, 2019 11:01 am
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 30
Views: 10520

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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: 30
Views: 10520

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

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: 30
Views: 10520

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: 30
Views: 10520

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: 30
Views: 10520

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

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: 30
Views: 10520

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: 30
Views: 10520

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: 30
Views: 10520

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: 30
Views: 10520

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: 30
Views: 10520

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

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: 30
Views: 10520

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

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

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: 30
Views: 10520

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

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: 30
Views: 10520

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: 30
Views: 10520

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

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: 30
Views: 10520

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

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

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

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

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: 30
Views: 10520

Re: Support for I2C LCD 4x20 displays

Thanks Nyamekye

Go to advanced search