can anyone help me on this code thnx ...
piborg
Tue, 03/01/2016 - 10:45
Permalink
No problem, we can give you a hand.
If you could answer a couple of questions it will help with figuring out what code is required:
vongular
Sun, 03/06/2016 - 08:27
Doorlock solenoid control
1. my SOLENOID here where using is 12v. and having a 2 wire of red and black which i dont know if this is possitive and negative
2. the solenoid connects to relay module and the other wire for solenoid is for the power supply which is adaptor and the relay connects to RPI B+
Sun, 03/06/2016 - 08:26
Mon, 03/07/2016 - 15:26
So is the solenoid is already connected to the relay module?
If the relay module is already connected to the GPIO header on the Raspberry Pi you should be able to turn the pin on and off to move the solenoid.
You can figure out which GPIO pin you are using with this diagram: http://pinout.xyz/
You can then use this simple example as a guide to change the pin between on and off: https://www.raspberrypi.org/blog/gpio-zero-a-friendly-python-api-for-phy...
lars_the_bear
Mon, 03/07/2016 - 10:01
If you already have something connected to the Raspberry Pi, can you say where, exactly? To one of the pins on the GPIO connector? If so, which one?
Best wishes Kevin
piborg
Tue, 03/01/2016 - 10:45
Permalink
Doorlock solenoid control
No problem, we can give you a hand.
If you could answer a couple of questions it will help with figuring out what code is required:
vongular
Sun, 03/06/2016 - 08:27
Permalink
Doorlock solenoid control
Doorlock solenoid control
1. my SOLENOID here where using is 12v. and having a 2 wire of red and black which i dont know if this is possitive and negative
2. the solenoid connects to relay module and the other wire for solenoid is for the power supply which is adaptor and the relay connects to RPI B+
vongular
Sun, 03/06/2016 - 08:26
Permalink
Doorlock solenoid control
1. my SOLENOID here where using is 12v. and having a 2 wire of red and black which i dont know if this is possitive and negative
2. the solenoid connects to relay module and the other wire for solenoid is for the power supply which is adaptor and the relay connects to RPI B+
piborg
Mon, 03/07/2016 - 15:26
Permalink
Doorlock solenoid control
So is the solenoid is already connected to the relay module?
If the relay module is already connected to the GPIO header on the Raspberry Pi you should be able to turn the pin on and off to move the solenoid.
You can figure out which GPIO pin you are using with this diagram: http://pinout.xyz/
You can then use this simple example as a guide to change the pin between on and off: https://www.raspberrypi.org/blog/gpio-zero-a-friendly-python-api-for-phy...
lars_the_bear
Mon, 03/07/2016 - 10:01
Permalink
If you already have something
If you already have something connected to the Raspberry Pi, can you say where, exactly? To one of the pins on the GPIO connector? If so, which one?
Best wishes
Kevin