Search found 20 matches
- Fri Apr 13, 2018 4:45 pm
- Forum: General discussion
- Topic: ISO GPIO pins 41-x expander
- Replies: 7
- Views: 1319
Re: ISO GPIO pins 41-x expander
I have done some googling in an attempt to find a GPIO "expander", I am coming up with things like MCP230XX but that seems to be designed for the Pi 1. I am looking for an expander that will give me pins 41 and beyond(in total I need 65 unique [i.e. not a multiplexer] generic I/O pins) fo...
- Thu Apr 12, 2018 9:53 pm
- Forum: General discussion
- Topic: ISO GPIO pins 41-x expander
- Replies: 7
- Views: 1319
ISO GPIO pins 41-x expander
I have done some googling in an attempt to find a GPIO "expander", I am coming up with things like MCP230XX but that seems to be designed for the Pi 1. I am looking for an expander that will give me pins 41 and beyond(in total I need 65 unique [i.e. not a multiplexer] generic I/O pins) for...
- Thu Apr 12, 2018 9:11 pm
- Forum: Python
- Topic: IF/ELSE on GPIO pins
- Replies: 11
- Views: 10064
Re: IF/ELSE on GPIO pins
SOLUTION FOUND!!! Thanks to all contributors. Here is the code for posterity and future inquiries... import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(xa1,GPIO.OUT) GPIO.setup(xa2.GPIO.OUT) GPIO.setup(xV,GPIO.IN, pull_up_down=GPIO.PUD_DOWN) while True: if ...
- Thu Apr 12, 2018 8:05 pm
- Forum: Python
- Topic: IF/ELSE on GPIO pins
- Replies: 11
- Views: 10064
Re: IF/ELSE on GPIO pins
in terminal I type sudo python test.py and the LED's switch on and off by themselves without voltage being present. Sound like you are missing a pull-down ( internal or external ) which keeps the pin reading low when no voltage is applied to pin 21. So from sourceforge GPIO.setup(channel, GPIO.IN, ...
- Thu Apr 12, 2018 7:30 pm
- Forum: Python
- Topic: IF/ELSE on GPIO pins
- Replies: 11
- Views: 10064
Re: IF/ELSE on GPIO pins
while True: if GPIO.input(21): GPIO.output(18,GPIO.HIGH) GPIO.output(17,GPIO.LOW) else: GPIO.output(17,GPIO.HIGH) GPIO.output(18,GPIO.LOW) time.sleep(0.1) time.sleep(0.1) is used to reduce the CPU load. Without it the loop will push one CPU to 100%. PeterO Oddly, that didn't seem to do the trick. H...
- Thu Apr 12, 2018 7:11 pm
- Forum: Python
- Topic: IF/ELSE on GPIO pins
- Replies: 11
- Views: 10064
- Thu Apr 12, 2018 6:39 pm
- Forum: Python
- Topic: IF/ELSE on GPIO pins
- Replies: 11
- Views: 10064
Re: IF/ELSE on GPIO pins
var1=GPIO.input(21) if var1: ##This will happen if var1 == true GPIO.output(18,GPIO.HIGH) else: ## This will happen if var1 is false GPIO.output(17,GPIO.HIGH) As documented at https://sourceforge.net/p/raspberry-gpio-python/wiki/Inputs/ So after doing the above(I also added the code from hippy), I ...
- Thu Apr 12, 2018 3:08 pm
- Forum: Python
- Topic: IF/ELSE on GPIO pins
- Replies: 11
- Views: 10064
IF/ELSE on GPIO pins
So I am trying to trigger an if/else when voltage is present on GPIO pin 21. What I have so far... import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(18,GPIO.OUT) GPIO.setup(17,GPIO.OUT) GPIO.setup(21,GPIO.IN) var1=GPIO.input(21,GPIO.HIGH) if var1: GPIO.out...
- Thu Apr 12, 2018 1:24 pm
- Forum: General discussion
- Topic: GPIO input voltage and Python script help
- Replies: 9
- Views: 1856
Re: GPIO input voltage and Python script help
Any ideas on the python script? And Can I use any of the IO pins or are there ones designated as inputs? Maybe you missed my earlier reply? Repeated here - For the coding aspect of your query, the gpiozero python library module (installed by default with the Raspbian Operating System) has built-in ...
- Wed Apr 11, 2018 9:20 pm
- Forum: General discussion
- Topic: GPIO input voltage and Python script help
- Replies: 9
- Views: 1856
Re: GPIO input voltage and Python script help
That you can do. Just wait until the input pin changes to high, then change your output. Though you do know you can do that with only a resistor, an LED, and a power source, correct? No need for a Raspberry Pi in the middle. Now going from red to green will require the addition of a pull-down trans...
- Wed Apr 11, 2018 8:47 pm
- Forum: General discussion
- Topic: GPIO input voltage and Python script help
- Replies: 9
- Views: 1856
Re: GPIO input voltage and Python script help
And that is OK. I just want 2 states. So if there is voltage (any voltage) on pin x then change GPIO 18 from high to Low and GPIO 17 from low to high. It may not be as simple as you hope. "Any voltage' may not necessarily be interpreted as High - there is a minimum trigger level that has to be...
- Wed Apr 11, 2018 7:06 pm
- Forum: General discussion
- Topic: GPIO input voltage and Python script help
- Replies: 9
- Views: 1856
Re: GPIO input voltage and Python script help
And that is OK. I just want 2 states. So if there is voltage (any voltage) on pin x then change GPIO 18 from high to Low and GPIO 17 from low to high.
- Wed Apr 11, 2018 6:45 pm
- Forum: General discussion
- Topic: GPIO input voltage and Python script help
- Replies: 9
- Views: 1856
GPIO input voltage and Python script help
First, how (if at all) can use a GPIO pin to monitor for voltage coming in? Next, My coding skills are beginner/intermediate. If I have a 2 color LED: Green Anode on pin 17, Red Anode on pin 18, Cathode on Pin 6. The goal here is; IF voltage is found on pin x; GPIO.output(18,GPIO.LOW) GPIO.output(17...
- Tue Nov 29, 2016 3:54 pm
- Forum: Other projects
- Topic: RF transmitter via Wifi
- Replies: 1
- Views: 836
RF transmitter via Wifi
So I have a project I would like to try but I am not sure if it will work. I would like to communicate via wifi to a Raspberry Pi. I would then have a built IR transmitter connected in front of my RF controlled device. Essentially I want to be able to turn on and control my home sound system from an...
- Wed Mar 02, 2016 3:24 pm
- Forum: Other
- Topic: ARMv8 64 Bit Chip and Windows
- Replies: 2
- Views: 1160
ARMv8 64 Bit Chip and Windows
So everything I am reading seems to imply that the ARMv8 64 Bit Chip can run Windows 8. Has anyone tried this yet? Was it successful?
- Sun Sep 13, 2015 5:49 pm
- Forum: General discussion
- Topic: Virtual Connect and peripherals
- Replies: 2
- Views: 577
Re: Virtual Connect and peripherals
That is what i was hoping for ghans. Thank you!
- Sun Sep 13, 2015 4:34 am
- Forum: General discussion
- Topic: Virtual Connect and peripherals
- Replies: 2
- Views: 577
Virtual Connect and peripherals
Hello all, I am working on a project that requires some background information. I have an application only available for Windows in .exe format. The app is used to load firmware to a peripheral device, which stores the firmware on flash form memory, via USB. If I set up a Windows PC and run this app...
FreeDOS32
Can fd32 be installed on rpi? Or better yet is there a step by step all in one place instructable for installung winXp via wine on raspbian?
- Thu Aug 27, 2015 2:11 pm
- Forum: Raspberry Pi OS
- Topic: Windows .exe application package on Raspbian
- Replies: 8
- Views: 2032
Re: Windows .exe application package on Raspbian
It is a program for my company and it was only built as .exe, so there isn't an equivalent. However, I remember hearing that Pi can run WinCE 6.0 which I believe can run the application. Is this a viable option?
- Thu Aug 27, 2015 1:16 pm
- Forum: Raspberry Pi OS
- Topic: Windows .exe application package on Raspbian
- Replies: 8
- Views: 2032
Windows .exe application package on Raspbian
Hello, I have no experience with Raspbian yet, only XBMX. I am trying to download .exe on a pi OS, I'm not even sure that Raspbian is the best option. Anyway, I want to run a program built for Windows XP. It doesn't matter how I do it, or even if the GUI is pretty because this will be the only Appli...