Go to advanced search

by Will19
Thu May 09, 2019 5:12 pm
Forum: Python
Topic: File Location ?
Replies: 3
Views: 464

File Location ?

... Sure I am missing something very basis but yet to find the answer - Adafruit link and screenshot below. https://learn.adafruit.com/user-space-spi-tft-python-library-ili9341-2-8/usage 001618.jpg 001617.jpg
by pierrot10
Sat May 04, 2019 8:31 pm
Forum: Python
Topic: Install busio module
Replies: 6
Views: 9208

Re: Install busio module

Hello, I wonder if you could help with that matter. I just install raspbian. I enabled SPI, I2C and I follow that proecdure https://learn.adafruit.com/lora-and-lorawan-radio-for-raspberry-pi/rfm9x-raspberry-pi-setup When I lunch the python script rfm9x_check.py, it ...
by zazinio
Sat May 04, 2019 1:31 pm
Forum: Python
Topic: Installing MicroPython - How To Guide
Replies: 27
Views: 20191

Re: Installing MicroPython - How To Guide

last month it was working and i had install various programs for solving rubiks cube and one of them change somthing and everything stop working. Reinstall rasbian and try to install micropython as by instructions but fail. Now my raspberry is pi@raspberrypi:~ $ pinout ,-----------------------------...
by hippy
Fri May 03, 2019 10:22 pm
Forum: Python
Topic: Installing MicroPython - How To Guide
Replies: 27
Views: 20191

Re: Installing MicroPython - How To Guide

Not having to do anything for axtls may suggest you have done something earlier which built that. I get the same 'nothing to be done' report except compilation continues without. I followed my original instructions, cloned from the .git, and that all worked for me on my Pi 3B ... pi@Pi3B:~ $ git clo...
by Go_Hawks
Mon Apr 29, 2019 1:34 pm
Forum: Python
Topic: Code won't work. name 'ws' is not defined
Replies: 7
Views: 943

Re: Code won't work. name 'ws' is not defined

... # Number of LED pixels. LED_PIN = 18 # GPIO pin connected to the pixels (18 uses PWM!). #LED_PIN = 10 # GPIO pin connected to the pixels (10 uses SPI /dev/spidev0.0). LED_FREQ_HZ = 800000 # LED signal frequency in hertz (usually 800khz) LED_DMA = 5 # DMA channel to use for generating signal (try ...
by rpdom
Tue Apr 23, 2019 7:29 pm
Forum: Python
Topic: Controlling LED strip from GPIO Help?
Replies: 4
Views: 263

Re: Controlling LED strip from GPIO Help?

danjperron wrote:
Tue Apr 23, 2019 7:15 pm
There is a third one using the SPI.

viewtopic.php?f=44&t=182755&hilit=neopixel
Maybe that was the one I was thinking of when I said PCM. I could have been wrong. I've only used the PWM method so far and not had any major problems with it on a Pi Zero driving 56 LEDs for the last few years.
by danjperron
Tue Apr 23, 2019 7:15 pm
Forum: Python
Topic: Controlling LED strip from GPIO Help?
Replies: 4
Views: 263

Re: Controlling LED strip from GPIO Help?

There is a third one using the SPI.

viewtopic.php?f=44&t=182755&hilit=neopixel
by ghp
Tue Apr 23, 2019 6:49 pm
Forum: Python
Topic: Replicating an existing keypad interface
Replies: 4
Views: 390

Re: Replicating an existing keypad interface

... (guess 100MHz or more). The keypad could be driven by same fpga or controller or a remote pi which sends data on key events on serial line or SPI.
by Go_Hawks
Tue Apr 23, 2019 2:03 pm
Forum: Python
Topic: Code won't work. name 'ws' is not defined
Replies: 7
Views: 943

Code won't work. name 'ws' is not defined

... # Number of LED pixels. LED_PIN = 18 # GPIO pin connected to the pixels (18 uses PWM!). #LED_PIN = 10 # GPIO pin connected to the pixels (10 uses SPI /dev/spidev0.0). LED_FREQ_HZ = 800000 # LED signal frequency in hertz (usually 800khz) LED_DMA = 5 # DMA channel to use for generating signal (try ...
by ysmnyol
Sun Apr 21, 2019 8:33 pm
Forum: Python
Topic: How can I convert x axis from sample to time?
Replies: 5
Views: 523

How can I convert x axis from sample to time?

Hello everybody. I am dealing with raspi3B+ and python 2.7. I am using AD8232 heart rate sensor and MCP3008 analog-digital converter. I am plotting the every 500 samples that are coming from MCP3008 for the real-time plotting. The number of ...
by joan
Fri Apr 19, 2019 10:11 am
Forum: Python
Topic: No SPI Clock
Replies: 3
Views: 550

Re: No SPI Clock

You could enter the following from the command line.

echo "abcdefghijklmnopqrstuvwxyz" >/dev/spidev0.0

I can see the results on a scope.
by DougieLawson
Fri Apr 19, 2019 8:55 am
Forum: Python
Topic: No SPI Clock
Replies: 3
Views: 550

Re: No SPI Clock

Try adding

Code: Select all

spi.max_speed_hz=500000
(with the clock speed you need).
by ghp
Fri Apr 19, 2019 7:50 am
Forum: Python
Topic: No SPI Clock
Replies: 3
Views: 550

Re: No SPI Clock

Hello, you open the device two times, but think the reason of the problem is related to transferring bytes. Try using lists:

Code: Select all

    dataout = 0x5a
    spi.xfer2( list(dataout) )
or spi.xfer2( [dataout] )
by HopHead
Thu Apr 18, 2019 9:47 pm
Forum: Python
Topic: No SPI Clock
Replies: 3
Views: 550

No SPI Clock

I don't see a SPI clock or Data. Configuration: Raspbian Stretch with desktop and recommended software Version:April 2019 Release date:2019-04-08 Kernel version:4.14 Hardware: Raspi A SPI, I2C, GPIO, SSH enabled via config Python: ...
by scotty101
Thu Apr 18, 2019 4:32 pm
Forum: Python
Topic: Adding variables to connection scripts
Replies: 2
Views: 217

Re: Adding variables to connection scripts

The SPI function is expecting the value of board.MOSI (presumably a number) but you are passing it the string "board.MOSI".

Your config should be

Code: Select all

"portMOSI": board.MOSI,
not

Code: Select all

"portMOSI": "board.MOSI",
by olliecampbell
Thu Apr 18, 2019 4:17 pm
Forum: Python
Topic: Adding variables to connection scripts
Replies: 2
Views: 217

Adding variables to connection scripts

... is required. Everything works as it should at the moment, but I've tried changing my connection code (sorry not sure of the correct term), from: spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO) cs = digitalio.DigitalInOut(board.D5) # Chip select of the MAX31865 board. sensor = adafruit_max31865.MAX31865(spi, ...
by ysmnyol
Sat Apr 13, 2019 6:09 pm
Forum: Python
Topic: Creating array for filtered data
Replies: 4
Views: 544

Creating array for filtered data

Hello everybody. I am dealing with raspi3B+ and python 2.7. I am using AD8232 heart rate sensor and MCP3008 analog-digital converter. I am plotting the sensor data with matplotlib lib but it is too noisy. I have to filter to ECG data but first ...
by Andyroo
Fri Mar 29, 2019 8:37 pm
Forum: Python
Topic: Reliably read sensor data
Replies: 4
Views: 415

Re: Reliably read sensor data

... I would see if you can buffer the data with a fast Arduino or similar and pass it back under serial control (even just RTS/CTS). Can you get a SPI or I2C version / interface?
by medright
Wed Mar 27, 2019 5:39 pm
Forum: Python
Topic: Systemd service for python script not writing to file
Replies: 10
Views: 2066

Re: Systemd service for python script not writing to file

... port i2c = busio.I2C(board.SCL, board.SDA) bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c,address=0x76) # OR create library object using our Bus SPI port #spi = busio.SPI(board.SCK, board.MOSI, board.MISO) #bme_cs = digitalio.DigitalInOut(board.D10) #bme280 = adafruit_bme280.Adafruit_BME280_SPI(spi, ...
by medright
Tue Mar 26, 2019 8:35 pm
Forum: Python
Topic: Systemd service for python script not writing to file
Replies: 10
Views: 2066

Systemd service for python script not writing to file

... port i2c = busio.I2C(board.SCL, board.SDA) bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c,address=0x76) # OR create library object using our Bus SPI port #spi = busio.SPI(board.SCK, board.MOSI, board.MISO) #bme_cs = digitalio.DigitalInOut(board.D10) #bme280 = adafruit_bme280.Adafruit_BME280_SPI(spi, ...
by makunta
Mon Mar 25, 2019 8:35 am
Forum: Python
Topic: UnboundLocalError in program
Replies: 3
Views: 363

UnboundLocalError in program

... tried to run it again I get this error. Here is the code for the program: import os import glob import time from luma.core.interface.serial import spi, noop from luma.core.render import canvas from luma.core.virtual import sevensegment from luma.led_matrix.device import max7219 os.system('modprobe ...
by Andyroo
Sat Mar 23, 2019 6:04 pm
Forum: Python
Topic: MFRC522-python not work
Replies: 2
Views: 2481

Re: MFRC522-python not work

... ends. The second error could be one extra bracket set but without seeing the actual code in context I am not 100% certain. Should the line read: spi.transfer((address<<1)&0x7E, val)
by CAP33
Sat Mar 23, 2019 1:54 pm
Forum: Python
Topic: MFRC522-python not work
Replies: 2
Views: 2481

MFRC522-python not work

... in MFRC522_Reset self.Write_MFRC522(self.CommandReg, self.PCD_RESETPHASE) File "/home/pi/MFRC522-python/MFRC522.py", line 141, in Write_MFRC522 spi.transfer(((addr<<1)&0x7E,val)) TypeError: function takes exactly 2 arguments (1 given)
by chileflora
Wed Mar 20, 2019 2:06 pm
Forum: Python
Topic: SPI Problem between Mega 2560 and Raspberry Pi
Replies: 4
Views: 349

SPI: Pi Zero works, Pi 3 B no...

Hi, everybody! Been doing more testing, and decided to replace the Pi... The SPI tests I was running before (and where the problems appeared) were done on Pi 3 B v 1.2. Today I tried on PI Zero W, and so far I did not encounter the same errors as with Pi 3 B. ...
by chileflora
Tue Mar 19, 2019 11:26 pm
Forum: Python
Topic: SPI Problem between Mega 2560 and Raspberry Pi
Replies: 4
Views: 349

Re: SPI Problem between Mega 2560 and Raspberry Pi

... back, but that sometimes the byte sent form Pi to Mega is returned from Mega to Pi as is... And this is Mega 2560 barebone program... #include <SPI.h> // ------------------------------------------------------------------------- ISR (SPI_STC_vect) // SPI interrupt routine { byte c = SPDR; // ...

Go to advanced search