lcd shield doesn't work
lcd shield doesn't work
Re: Can the board works disconnected from IDE ?
Postby kwagyeman » Tue Oct 04, 2016 7:57 am
On my phone, so, short answer.
Click tools, and the then save to OpenMV cam. The IDE will then ask you if you want comments striped. Then go to tools and click reset OpenMV cam.
The board will now run the script you loaded onto it without the IDE
============================================================================================================================================================================================
Today,I try the steps as introduced above, but something happens to my board. The LCD shield doesn't show the picture as the picture showed in the ide. Does someone know what happens? How can i fix this problem? Thanks
Postby kwagyeman » Tue Oct 04, 2016 7:57 am
On my phone, so, short answer.
Click tools, and the then save to OpenMV cam. The IDE will then ask you if you want comments striped. Then go to tools and click reset OpenMV cam.
The board will now run the script you loaded onto it without the IDE
============================================================================================================================================================================================
Today,I try the steps as introduced above, but something happens to my board. The LCD shield doesn't show the picture as the picture showed in the ide. Does someone know what happens? How can i fix this problem? Thanks
Re: lcd shield doesn't work
You have to run the lcd example for this to work.
Re:deshipu
I tried it just now, but it doesn't work still. 

- iabdalkader
- Posts: 1327
- Joined: Sun May 24, 2015 3:53 pm
Re: lcd shield doesn't work
Can you send us an image of the shield connected ?
Re:iabdalkader
Sure! I add it with the attachments. Can you see the picture?
- iabdalkader
- Posts: 1327
- Joined: Sun May 24, 2015 3:53 pm
Re: lcd shield doesn't work
No can't see any attachments, also please include the script you used for testing.
Re: iabdalkader
# Hello World Example
#
# Welcome to the OpenMV IDE! Click on the green run arrow button below to run the script!
import sensor, image, time
sensor.reset() # Reset and initialize the sensor.
sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE)
sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240)
sensor.skip_frames(10) # Wait for settings take effect.
clock = time.clock() # Create a clock object to track the FPS.
while(True):
clock.tick() # Update the FPS clock.
img = sensor.snapshot() # Take a picture and return the image.
print(clock.fps()) # Note: OpenMV Cam runs about half as fast when connected
# to the IDE. The FPS should increase once disconnected.
=====================================================================================
how can I add the picture? I add it to the attachment and then submit, the picture cannot be upload to the post.
#
# Welcome to the OpenMV IDE! Click on the green run arrow button below to run the script!
import sensor, image, time
sensor.reset() # Reset and initialize the sensor.
sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE)
sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240)
sensor.skip_frames(10) # Wait for settings take effect.
clock = time.clock() # Create a clock object to track the FPS.
while(True):
clock.tick() # Update the FPS clock.
img = sensor.snapshot() # Take a picture and return the image.
print(clock.fps()) # Note: OpenMV Cam runs about half as fast when connected
# to the IDE. The FPS should increase once disconnected.
=====================================================================================
how can I add the picture? I add it to the attachment and then submit, the picture cannot be upload to the post.
- iabdalkader
- Posts: 1327
- Joined: Sun May 24, 2015 3:53 pm
Re: lcd shield doesn't work
Click Attachments -> Add files then browse for the image, it will upload and then submit
- iabdalkader
- Posts: 1327
- Joined: Sun May 24, 2015 3:53 pm
Re: lcd shield doesn't work
You're not using the LCD at all in your script, unless there's a problem with the HW, this should work:
Code: Select all
import sensor, image, lcd
sensor.reset() # Initialize the camera sensor.
sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE
sensor.set_framesize(sensor.QQVGA2) # Special 128x160 framesize for LCD Shield.
lcd.init() # Initialize the lcd screen.
while(True):
lcd.display(sensor.snapshot()) # Take a picture and display the image.
Re: lcd shield doesn't work
I tried the code you tell me.I think this time it works,but there are many stripes in the LCD shield. I cannot find the browse button in my web. Could you please tell me your email address, so that i can use the email to send you the picture. By the way, if I erase some thing by mistake, can it have an influence on the shield?
- iabdalkader
- Posts: 1327
- Joined: Sun May 24, 2015 3:53 pm
Re: lcd shield doesn't work
You can upload it somewhere like (http://imgur.com/) and just post the link.
Re:iabdalkader
hi, I post the picture. This is what the lcd shield like.
- iabdalkader
- Posts: 1327
- Joined: Sun May 24, 2015 3:53 pm
Re: lcd shield doesn't work
Hi, this shield is Not original, did you buy this from Taobao ? We've seen many clones lately on Taobao, they use low quality parts and 2 layers PCBs for the camera board, but also they change the design, which could cause issues. I can't be sure what's wrong with the shield, as we didn't make it.
Re:iabdalkader
Yes, I bought it from taobao. So do you have a formal distributor in China?
- iabdalkader
- Posts: 1327
- Joined: Sun May 24, 2015 3:53 pm
Re: lcd shield doesn't work
OK,thanks.
- iabdalkader
- Posts: 1327
- Joined: Sun May 24, 2015 3:53 pm
Who is online
Users browsing this forum: No registered users and 1 guest