All Questions

Tagged with
Filter by
Sorted by
Tagged with
-2
votes
0answers
30 views

how to import 'Adafruit_GPIO.SPI'?

import time import Adafruit_GPIO.SPI as SPI import Adafruit_MCP3008 CLK=18 MISO=23 MOSI=24 CS=25 mcp=Adafruit_MCP3008.MCP3008(clk=CLK,cs=CS,miso=MISO,mosi=MOSI) while True: v=(mcp.read_adc(0)/1023....
1
vote
0answers
68 views

raspberry pi3 + fingerprint

I'm looking for a way to connect fingerprint scanner with raspberry pi3 using python. I'd like to use only gpio or hat (not usb) interface. I'm searching for a while without figured out, so I've ...
0
votes
1answer
22 views

Corrupted image file when using win32 [closed]

What things make the file is corrupted and not readable as an image file?! if the sd card is read-only, this prevent that I able to take a copy from it??!
1
vote
0answers
52 views

Display drivers for RaspberryPi3B+

I am trying to get a 3.5 inch RPi Display working on my raspberry pi. I have written my sd card with raspbian and the pi works well (red LCD glows all the time , and greed LCD flickers (fades on and ...
0
votes
1answer
61 views

How can I use the RPI3 to generate a sawtooth with frequency around 20kHz?

I am trying to generate a sawtooth waveform from the GPIO, the frequency is high, 20 Khz. is pigpio library my best option?
-1
votes
3answers
137 views

How can i Get 5 Volt output with GPIO

I am using Raspberry Pi 3 B+ and I want to run a 5 volt DC motor with RPi.GPIO, I have written a code: import RPi.GPIO as GPIO from pip._vendor.distlib.compat import raw_input u = raw_input('how ...
0
votes
1answer
45 views

Wiring on RPI3 when connecting two peripherals - microcontrollers simultaneously

I am currently having an ADC(MCP3008) connected to a rpi3, using the following wiring map, in order to read data from analog sensors. MCP3008 -> RPI3 VDD -> 3.3V VREF -> 3.3V ...
0
votes
2answers
108 views

Restore UART pins 8 & 10 after GPIO.cleanup() without reboot

A Raspberry Pi 3B+ is talking to an STM32 chip via UART over pins 8 (TXD) & 10 (RXD). When I take control of those pins using GPIO.setup(8, GPIO.OUTPUT); GPIO.output(8, GPIO.LOW); and later ...
0
votes
2answers
221 views

Raspberry Pi Detects I2C Device Sometimes

I have my MPU-92/65 connected to my Raspberry Pi and it's sometimes detected but not always. $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -...
3
votes
2answers
5k views

How fast can GPIO pins toggle?

I'm currently using Python's RPi.GPIO module to toggle some pins, and I want to know how quickly it can do this. I need the pins to be toggled on the schedule of a ~50 mhz FPGA clock, which I'm ...
0
votes
1answer
474 views

Get measured value of gpio vibration sensor (SW420)

I've managed to connect 2 SW420 vibration sensors to my rpi3 and can identify a vibration event on callback. However, I'd like to get the measured value (voltage change?) from the sensors, to see ...
0
votes
2answers
964 views

GPIO does not read 3.3 v input with a resistor

I am having some issues trying to read 3.3v directly from the same Raspberry. I tried the next connections: With the first case, using a direct connection to 3.3 v I did not have a problem. The ...