Go to advanced search

by mikeandlauren
Sun Jul 16, 2017 5:04 pm
Forum: Beginners
Topic: Make an LED flash once.
Replies: 4
Views: 813

Re: Make an LED flash once.

Nevermind, I think I got it. I changed GPIO.RISING to GPIO.FALLING and now it functions exactly as I need it to. Is this an acceptable way to accomplish it? EDIT: Now I have one problem left. Whenever I turn anything on or off on the same circuit as the relay, I inadvertently trigger the "camera on"...
by mikeandlauren
Sun Jul 16, 2017 4:37 pm
Forum: Beginners
Topic: Make an LED flash once.
Replies: 4
Views: 813

Re: Make an LED flash once.

That worked! Thank you so much. One more question. How would I then have it flash the LED one more time when I let go of the push button. To explain my project, I'm trying to get my camera to record when I say "Alexa turn the camera on." That turns on relay number 3 which connects 3.3v to GPIO 23. T...
by mikeandlauren
Sun Jul 16, 2017 3:11 pm
Forum: Beginners
Topic: Make an LED flash once.
Replies: 4
Views: 813

Make an LED flash once.

Hello, I'm trying to make a relay flash on and off one time when triggered by GPIO 23. I'm a beginner so I followed a tutorial to make an LED flash with a button press, but I can't figure out how to make it stop instead of looping over and over. Here's the code I have so far. #!/usr/bin/env python i...
by mikeandlauren
Sat Jul 15, 2017 7:54 pm
Forum: Advanced users
Topic: Emulated Wemo Triggering Relay
Replies: 0
Views: 898

Emulated Wemo Triggering Relay

I'm in way over my head, but I've been able piece together almost exactly what I'm looking for, with one exception. The project: I make YouTube videos in my workshop. When I want to record I have to turn off the music, turn off the fans and dust collection, then press record. I want to have an echo ...
by mikeandlauren
Thu Jun 09, 2016 11:52 am
Forum: Python
Topic: FTP transfer when existing file is modified?
Replies: 5
Views: 1029

Re: FTP transfer when existing file is modified?

import RPi.GPIO as GPIO import time import os GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.IN, pull_up_down=GPIO.PUD_UP) while True: input_state = GPIO.input(18) if input_state == False: # it is modified here when you take a new photo os.system ("fswebcam -r 1920x1080 image7.jpg") time.sleep(0.2) ###...
by mikeandlauren
Thu Jun 09, 2016 12:01 am
Forum: Python
Topic: FTP transfer when existing file is modified?
Replies: 5
Views: 1029

FTP transfer when existing file is modified?

Hello! I'm brand new to Raspberry Pi and thanks to tutorials and these forums, I've managed to get my Pi to take a picture with a USB webcam when a light sensor goes off. Woot! The last thing I want it to be able to do is upload that photo to a website/server whenever it takes a new photo. It's a se...

Go to advanced search