Go to advanced search

by thamaeng
Thu Nov 27, 2014 1:09 am
Forum: Beginners
Topic: print screen in raspberry pi
Replies: 1
Views: 4047

print screen in raspberry pi

I need to take screen shots in my program. is it possible to take print screen in raspberry pi? im using a mini keyboard and print screen key is not there so i cant check it. if not, is there another way to take screen shots or any software available like snipping tools? Thank you.
regards,
Thama
by thamaeng
Tue Nov 25, 2014 8:27 pm
Forum: Camera board
Topic: Pi camera error
Replies: 0
Views: 439

Pi camera error

I am using camera preview in my program. i am using a condition to stop the preview. after stopping the preview, the red light in the camera remains on. it will not off unless i switch off the Raspberry pi. If i try to run the program again with the red light on in camera, its giving me a error somt...
by thamaeng
Fri Nov 21, 2014 7:54 am
Forum: Beginners
Topic: ultrasonic + 16x2 LCD
Replies: 8
Views: 2450

Re: ultrasonic + 16x2 LCD

Thank you again for the clear guidance. i manage to change the lcd.message("") instead of lcd.print("") since it was givinng me error. when ever i try to run the program lcd displays "ultrasonic mes.", the first message and will not go further. cpu usage monitor shows high until i close the rogram, ...
by thamaeng
Thu Nov 20, 2014 9:10 pm
Forum: Beginners
Topic: ultrasonic + 16x2 LCD
Replies: 8
Views: 2450

Re: ultrasonic + 16x2 LCD

thank you for the help. can i just import the Adafruit library or do i need a network to download it. im using raspian. bit new to this. thanx again.

regards
thama
by thamaeng
Thu Nov 20, 2014 5:48 pm
Forum: Beginners
Topic: ultrasonic + 16x2 LCD
Replies: 8
Views: 2450

Re: ultrasonic + 16x2 LCD

thank you for the advise. i was using different in my program. just forgot to change it in the post. ad yes, im using a voltage divider between GPIO. thank you again for the heads up. can you help me with the code, what to change
by thamaeng
Thu Nov 20, 2014 4:33 pm
Forum: Beginners
Topic: ultrasonic + 16x2 LCD
Replies: 8
Views: 2450

Re: ultrasonic + 16x2 LCD

LCD code import RPi.GPIO as GPIO import time # Define GPIO to LCD mapping LCD_RS = 13 LCD_E = 8 LCD_D4 = 25 LCD_D5 = 24 LCD_D6 = 23 LCD_D7 = 18 # Define some device constants LCD_WIDTH = 16 # Maximum characters per line LCD_CHR = True LCD_CMD = False LCD_LINE_1 = 0x80 # LCD RAM address for the 1st l...
by thamaeng
Thu Nov 20, 2014 4:30 pm
Forum: Beginners
Topic: ultrasonic + 16x2 LCD
Replies: 8
Views: 2450

ultrasonic + 16x2 LCD

hi, I am trying to take distance measurement and print it on lcd display. program i am using for distance measuring and lcd display works fine when i use them as separate programs.(to take distance readings or print something in lcd) I'm having hard time displaying the distance. please help me to ad...
by thamaeng
Mon Nov 17, 2014 5:57 pm
Forum: Beginners
Topic: GPIO define
Replies: 6
Views: 1053

Re: GPIO define

DougieLawson wrote:
thamaeng wrote:i am using raspian. and using nano to write the program.
That is 100% irrelevant. Please re-read Joan's answer.

please do you mind explaining his question.
by thamaeng
Mon Nov 17, 2014 5:50 pm
Forum: Beginners
Topic: GPIO define
Replies: 6
Views: 1053

Re: GPIO define

i am trying to connect a 16x2 lcd display. normally i write the program by typing nano filename. is this what did you mean by software?
by thamaeng
Mon Nov 17, 2014 5:32 pm
Forum: Beginners
Topic: GPIO define
Replies: 6
Views: 1053

GPIO define

hey,
when defining GPIO ports do we have to consider the actual pin in raspberry pi or the GPIO number. for example if im using pin 40 opposite to the pin 39(GND) with LCD, should i say LCD_RS = 40 or LCD_RS = 21 ?
by thamaeng
Mon Nov 17, 2014 5:19 pm
Forum: Beginners
Topic: raspberry pi reboots
Replies: 4
Views: 752

Re: raspberry pi reboots

I have B+ model. i'm using 5v power supply, cable and dock. im using standerd computer monitor, hdmi to male to male vga cable. im using 2 usb devices, mouse and keyboard. i have connect ultrasonic sensor and camera with the pi. its been happening for almost 2 weeks. it is still working but after 3 ...
by thamaeng
Mon Nov 17, 2014 4:25 pm
Forum: Beginners
Topic: raspberry pi reboots
Replies: 4
Views: 752

raspberry pi reboots

When I try to switch on the raspberry pi it reboots couple of time and then start. this happens few times. some times it goes until recovery page or sometimes only the colour page and re boots. what seems to be the problem? any ideas please?

thama
by thamaeng
Thu Nov 13, 2014 4:29 pm
Forum: Beginners
Topic: Multitasking with camera
Replies: 0
Views: 285

Multitasking with camera

Good day, i want to add camera preview with the program i'm using to measure distance and audio warnings via local 3.5mm jack. .I want to start the camera preview at the same time. i tried using the "raspivid -t 0" it will only play the camera for the time period and then go to the next command, "os...
by thamaeng
Mon Nov 10, 2014 9:53 am
Forum: Camera board
Topic: Live video feed with camera mdule
Replies: 1
Views: 750

Live video feed with camera mdule

Hi, I am trying to use the raspberry pi camera module as a car reverse camera. Is it possible to connect the camera module to the raspberry pi and view the video feed in the same monitor which is connected with the raspberry pi. i do not want to record video or capture any photos. just want to see t...
by thamaeng
Mon Nov 03, 2014 5:20 pm
Forum: Beginners
Topic: no audio output
Replies: 3
Views: 620

Re: no audio output

rpdom wrote:
DirkS wrote:Have you tried 'omxplayr -o hdmi <yourmp3file>'?
That would send output to HDMI. To send it to the 3.5mm jack use 'omxplayer -o local <yourmp3file>'.
Thank you . omxplayer -o local <yourmp3file> works
by thamaeng
Mon Nov 03, 2014 5:11 pm
Forum: Automation, sensing and robotics
Topic: 2 Pi Robots - Sonar, continuous servos and motors
Replies: 10
Views: 9640

Re: 2 Pi Robots - Sonar, continuous servos and motors

hey,

i am getting a syntax error: 'return' outside function. what seems to be the problem.

thank you.
by thamaeng
Mon Nov 03, 2014 4:08 pm
Forum: Beginners
Topic: no audio output
Replies: 3
Views: 620

no audio output

hey, I am trying to play a mp3 file using omxplayer and there is no output. i tried using the hdmi and 3.5 jack. it is showing me this when i give the command. audio codec mp3 channels 1 samplerate 22050 bitspersample 16 subtitle count: 0, staate: off, index:1, delay:0 have a nice day;) but i cant h...
by thamaeng
Sun Oct 26, 2014 11:02 am
Forum: Beginners
Topic: Ultrasonic distance measurement+ voice warning
Replies: 12
Views: 2027

Re: Ultrasonic distance measurement+ voice warning

I have edited the code. please have look. thank you.

regards,
Thama.
by thamaeng
Sun Oct 26, 2014 10:56 am
Forum: Beginners
Topic: Ultrasonic distance measurement+ voice warning
Replies: 12
Views: 2027

Re: Ultrasonic distance measurement+ voice warning

hi, Thank you for the information on how to do a post. since im new to this forum please excuse me. regards, thama. import RPi.GPIO as GPIO import time GPIO.setmode (GPIO.BOARD) TRIG = 7 ECHO = 12 GPIO.setup (TRIG,GPIO.OUT) GPIO.output(TRIG,0) GPIO.setup(ECHO,GPIO.IN) time.sleep(0.1) print "start me...
by thamaeng
Sun Oct 26, 2014 8:22 am
Forum: Beginners
Topic: Ultrasonic distance measurement+ voice warning
Replies: 12
Views: 2027

Re: Ultrasonic distance measurement+ voice warning

hey, Thank you. the above code have some syntax errors. here is a fixed version of this. can you help me to put this in a loop so i get continues reading. i tried "return distance" but its dose not seem to working. regards, thama. import RPi.GPIO as GPIO import time GPIO.setmode (GPIO.BOARD) TRIG = ...
by thamaeng
Sun Oct 26, 2014 4:43 am
Forum: Beginners
Topic: Ultrasonic distance measurement+ voice warning
Replies: 12
Views: 2027

Re: Ultrasonic distance measurement+ voice warning

hey, I am using this code to measure the distance using ultrasonic sensors. i want to put this in a loop in order to get continues readings. can you please help me to fix my code. thank you. regards Thama. import Rpi.GPIO as GPIO import time GPIO.setmode (GPIO.BOARD) TRIG = 7 ECHO = 12 GPIO.setup (T...
by thamaeng
Sun Oct 12, 2014 4:58 am
Forum: Beginners
Topic: Ultrasonic distance measurement+ voice warning
Replies: 12
Views: 2027

Re: Ultrasonic distance measurement+ voice warning

Thank you very much for the information and head up. i will try to work on the program and see if i can get it working. thank you
again.
by thamaeng
Fri Oct 10, 2014 1:56 pm
Forum: Beginners
Topic: Ultrasonic distance measurement+ voice warning
Replies: 12
Views: 2027

Re: Ultrasonic distance measurement+ voice warning

Thanx for the information. the problem i'm facing is lets say when there is a object in 100cm range i need to play a audio. when it gets closer lets say 75cm-100cm i need to play a different audio. like this i need to play different audios for 50-75 and 25-50. if you have any idea to help me out is ...
by thamaeng
Fri Oct 10, 2014 12:53 pm
Forum: Beginners
Topic: Ultrasonic distance measurement+ voice warning
Replies: 12
Views: 2027

Ultrasonic distance measurement+ voice warning

I am working on a project involves ultrasonic sensors. i need to measure the distance and play 4 different audio when it reaches the first four feet. How i will use the GPIO pins in this matter. any help will be grateful. thank you.

Go to advanced search