Go to advanced search

by kbfirebreather
Wed Jun 11, 2014 10:57 am
Forum: Python
Topic: GPIO Scroll Buttons
Replies: 4
Views: 1569

Re: GPIO Scroll Buttons

I would probably try detecting the button press and executing a system mouse scroll command.
by kbfirebreather
Fri Jun 06, 2014 4:41 pm
Forum: Python
Topic: Question about PySerial and sending commands.
Replies: 6
Views: 1746

Re: Question about PySerial and sending commands.

Ah okay, sorry for misunderstanding. I looked into it a little but couldn't really find anything concrete. If I have time later, I'll try some experiments to see if I can get binary data to transmit with pyserial. If you get it working, let us know, if not, post some code when you get a chance!
by kbfirebreather
Fri Jun 06, 2014 1:14 pm
Forum: Python
Topic: Question about PySerial and sending commands.
Replies: 6
Views: 1746

Re: Question about PySerial and sending commands.

Didn't think the LED is fried because the screen took the command and printed it as a string (like it sent the ascii value of 1 and 7, not the byte value of 17). I'll throw together a Arduino demo when I get home to test. I think the issue I'm having issues getting around pyserial send string data....
by kbfirebreather
Fri Jun 06, 2014 10:53 am
Forum: Python
Topic: Question about PySerial and sending commands.
Replies: 6
Views: 1746

Re: Question about PySerial and sending commands.

Are you talking about the backlight? Does your LCD have a demo mode? Does that show the backlight working? Does sending 12 clear the screen? Check if other commands work, and if they do, your LED's might have been fried? If they don't work, then you might not be transmitting the decimal/hex in the r...
by kbfirebreather
Fri Jun 06, 2014 10:44 am
Forum: Automation, sensing and robotics
Topic: Building a temperature/humdity data logger
Replies: 2
Views: 2636

Re: Building a temperature/humdity data logger

I can't speak on the quality of the sensor. But if it meets your needs, then it shouldn't be a problem. You can probably look up using humidity sensors with a raspberry pi. Since it uses i2c, you'll need to multiplex all the sensors. I found a tutorial here . I haven't done anything with excel and p...
by kbfirebreather
Tue Jun 03, 2014 1:37 pm
Forum: Automation, sensing and robotics
Topic: Greenhouse window opening
Replies: 7
Views: 4607

Re: Greenhouse window opening

... the first tutorial linked here can damage your raspberry pi. if using a L298N H-Bridge to control your motor please research thoroughly and don't follow the you tube video. RaspberryPiGuy doesn't believe it will harm your Pi, nor does he believe that the people who say that their pi's have been...
by kbfirebreather
Tue Jun 03, 2014 11:25 am
Forum: Automation, sensing and robotics
Topic: Greenhouse window opening
Replies: 7
Views: 4607

Re: Greenhouse window opening

Finding off the shelf software might be a little tricky, but what you want to do is fairly straight forward with not much to it and easily doable. Spinning a motor (WARNING: tutorial uses 5V logic which is dangerous for the Pi. Research methods to circumvent using the 5V directly to the Pi if using ...
by kbfirebreather
Tue Jun 03, 2014 11:12 am
Forum: Python
Topic: USB devices
Replies: 1
Views: 744

Re: USB devices

In the terminal, can you use both the keyboard and barcode scanner, and does each one type to the terminal? I don't have a barcode scanner in front of me, but I have two keyboard hooked up. I'm able to capture characters from each keyboard with the following code I got from here . import sys import ...
by kbfirebreather
Tue Jun 03, 2014 10:58 am
Forum: Automation, sensing and robotics
Topic: Greenhouse window opening
Replies: 7
Views: 4607

Re: Greenhouse window opening

Is your greenhouse like the one illustrated in the video? If so, you could do exactly what they're doing. Attach string to each of the windows you want to open, and bring it down to the shaft on a motor that can handle the load. Use a temperature sensor to either wind or unwind the motor which will ...
by kbfirebreather
Mon Jun 02, 2014 12:15 pm
Forum: Automation, sensing and robotics
Topic: Coin Acceptor Store to SD Card
Replies: 1
Views: 709

Re: Coin Acceptor Store to SD Card

You could send a command over serial to the Arduino from the Pi, and have the Arduino respond with the data from the SD card.
by kbfirebreather
Mon Jun 02, 2014 12:13 pm
Forum: Java
Topic: Unable to open GPIO direction interface : Permission denied
Replies: 3
Views: 3044

Re: Unable to open GPIO direction interface : Permission den

Can we see the code in code tags?
by kbfirebreather
Thu May 29, 2014 5:23 pm
Forum: Automation, sensing and robotics
Topic: Motors
Replies: 15
Views: 4196

Re: Motors

You could get a motor with encoder to be able to position it how you want. Or you could try a motor without an encoder and knowing how much it turns with each pulse, you could calculate/experiment to figure out how many pulses will raise/lower your blinds.
by kbfirebreather
Tue May 27, 2014 3:20 am
Forum: Python
Topic: Image save after colors detection
Replies: 2
Views: 885

Re: Image save after colors detection

What errors are you getting?
by kbfirebreather
Mon May 26, 2014 4:46 am
Forum: Python
Topic: Pi Faced Digital Relay
Replies: 1
Views: 736

Re: Pi Faced Digital Relay

What relay are you using? If the relay needs a certain amperage and/or a certain voltage to turn fully on, it's possible the GPIO on the Pi isn't enough to fully engage the relay.
by kbfirebreather
Mon May 26, 2014 4:44 am
Forum: Python
Topic: GPIO and Python 3 Questions
Replies: 4
Views: 1025

Re: GPIO and Python 3 Questions

Wow! I just want to say this was the first time I've ever joined a forum for support and I'm very impressed. Got answers right away. Thanks Joan and Simon for being on the ball. I'll check out that link Simon...thanks again. stefo If you want to retain states during power loss. You can start your p...
by kbfirebreather
Thu May 22, 2014 10:41 am
Forum: Python
Topic: problems with GPIO.add_event_detect
Replies: 9
Views: 3339

Re: problems with GPIO.add_event_detect

You have the 10K resistor between OUT on the flow meter and Pin#1 on the raspberry pi? Also, did you run my test code as is, or were there modifications? Before you run your script, you should make sure the meter is running as expected, otherwise your script might detect those extra pulses making th...
by kbfirebreather
Thu May 22, 2014 10:34 am
Forum: Python
Topic: GPIO Joystick + Buttons +Pygame
Replies: 6
Views: 3651

Re: GPIO Joystick + Buttons +Pygame

Your inputs are floating. How to handle this can be found here
by kbfirebreather
Wed May 21, 2014 3:00 pm
Forum: Python
Topic: change the color of widget by pressing button
Replies: 4
Views: 1412

Re: change the color of widget by pressing button

Do you have a DMM?

Can you check the output of the button when you press it?

How do you have it wired up?

Finally, I would make a program that continually prints out the state of the GPIO the button is connected to and see if the output changes as the button is pressed.
by kbfirebreather
Wed May 21, 2014 2:15 pm
Forum: Python
Topic: change the color of widget by pressing button
Replies: 4
Views: 1412

Re: change the color of widget by pressing button

How do you have your button(s) wired? What button(s) are you using? GPIO.input(GPIOPIN) returns a 1 or a 0, not a true or false. Therefore you would want: if(inputValue == True) to be: if(inputValue == 1)#1 for HIGH, 0 for LOW #2: Yes it is very possible. Once you we get the button press detection w...
by kbfirebreather
Wed May 21, 2014 2:09 pm
Forum: Python
Topic: GPIO.output only runs Once
Replies: 15
Views: 3036

Re: GPIO.output only runs Once

Change your function to this: def unlockDoor(channel): print(GPIO.input(7)) if(GPIO.input(7)== 0): print("Door Unlocked!") GPIO.output(7, 1) print("7,1") GPIO.output(16, 1) print("16,1") GPIO.output(15, 0) print("15,0") time.sleep(doorDelay) print("sleept doorDelay") GPIO.output(7, 0) print("7,0") G...
by kbfirebreather
Wed May 21, 2014 1:07 pm
Forum: Python
Topic: problems with GPIO.add_event_detect
Replies: 9
Views: 3339

Re: problems with GPIO.add_event_detect

Okay, based on the description for that, you're on the right track. The Yellow wire is an open collector requiring a pull up resistor. I'm not sure what orientation you have the optocoupler configured in without seeing a schematic, but for now, let's take that out as it's unnecessary and adding unn...
by kbfirebreather
Wed May 21, 2014 12:00 pm
Forum: Python
Topic: GPIO Joystick + Buttons +Pygame
Replies: 6
Views: 3651

Re: GPIO Joystick + Buttons +Pygame

Connect every COM pin on the buttons to 3.3V and every Normally-OPEN to a GPIO. Whenever a button is pressed, the corresponding GPIO pin will be pulled HIGH(3.3V).

Here is an illustration.
by kbfirebreather
Wed May 21, 2014 11:55 am
Forum: Python
Topic: problems with GPIO.add_event_detect
Replies: 9
Views: 3339

Re: problems with GPIO.add_event_detect

Okay, based on the description for that, you're on the right track. The Yellow wire is an open collector requiring a pull up resistor. I'm not sure what orientation you have the optocoupler configured in without seeing a schematic, but for now, let's take that out as it's unnecessary and adding unne...
by kbfirebreather
Wed May 21, 2014 11:31 am
Forum: Python
Topic: GPIO.output only runs Once
Replies: 15
Views: 3036

Re: GPIO.output only runs Once

If you put a DMM on pin 3 to GND, does it ever read HIGH? It looks like from the tutorial you linked, the switch pulls PIN-3 LOW when it's pressed. In the code though you have: GPIO.setup(3, GPIO.IN) And I don't see a pull up resistor in the tutorial you linked as well. I think you want to change th...

Go to advanced search