@Dana-Myers114  That would be nice, thanks !
Is it not possible to do bit banging using python ? This is what is done on the RPi in the adafruit tutorial link I gave. It doesn't seem a very clean way to do it, but it works pretty well on the RPi.
 
		
		
		
	Pierre Rossinès
@Pierre Rossinès
Best posts made by Pierre Rossinès
Latest posts made by Pierre Rossinès
- 
    RE: Using a MCP3008 via SPIposted in Omega Talk
- 
    RE: Using a MCP3008 via SPIposted in Omega TalkIs it possible to user other GPIO pins to bit bang the SPI protocol ? 
- 
    RE: Using a MCP3008 via SPIposted in Omega Talk@Richard-Berg said in Using a MCP3008 via SPI: Read this thread HERE Oh ok, thanks. Everytime I try to use my omega 2 for something, I first need to wait for a fimware update. 
 Guess I'll have to build my own LEDE or something... Too bad, I needed the wifi 
- 
    Using a MCP3008 via SPIposted in Omega TalkHi, 
 Last week I connected a MCP3008 ADC to my omega2 via the SPI pins.
 I thought I could read data but it was in fact rubbish.Reading a tutorial on adafruit (https://learn.adafruit.com/reading-a-analog-in-and-controlling-audio-volume-with-the-raspberry-pi/script) and the mcp documentation (http://ww1.microchip.com/downloads/en/DeviceDoc/21295d.pdf), it seems the read procedure is simple : I just have to send a 4 bit word (1100) to ask for a reading on channel 0, and the MCP returns 10 bits. 
 However, using the python lib I have to give a one byte address during the read, which I assume would be the command word 1100 with a 0 padding, so 11000000. The value I read next is quite inconsistent, even with a fixed input voltage.Has anyone any clue of what I am doing wrong ? Thanks 
- 
    RE: [resolved] Help, My Omega2 plus can't start successfullyposted in Omega Talk@ccs-hello 
 I have the same issues with two different voltage regulators.
 I bought a first one which delivers ~3.1V, which I recon might not be enough.
 I made another one using a LMS1117 which delivers a very nice 3.3V from a USB charger. It says it handles 1A, and the USB charger can deliver up to 1.2A.The worst part is that sometimes they work, sometimes they don't. 
 I did not connect anything else on the charger so the Omega2 should be able to draw whatever it needs.
- 
    RE: SPI Pins for the Omega2posted in Omega Talk@Brice-Parent I don't need it, I'm using the SPI to communicate with a very simple MCP3008 
- 
    RE: SPI Pins for the Omega2posted in Omega Talk@Brice-Parent 
 Indeed, my only mistake was to swap the arguments.
 I did not have the spi-tools package installed but I'm not sure it is really necessary.My code seems to work now. 
 Thank you very much !
- 
    RE: SPI Pins for the Omega2posted in Omega Talk@WereCatf It does show up, but when I use it with the python library as described here : https://docs.onion.io/omega2-docs/spi-python-module.html 
 I get that error.My code is pretty simple : import onionSpi spi = onionSpi.OnionSpi(32766, 1) spi.sck = 7 spi.mosi = 8 spi.miso = 9 spi.cs = 6 spi.registerDevice() spi.setupDevice()I got the 32766, 1 part from the /dev/spi32766.1 file name 
- 
    RE: SPI Pins for the Omega2posted in Omega Talk@Brice-Parent What did you install to make it work on the omega2? 
 I followed the documentation but I get an error while registering the spi device : "Failed to find spi-gpio-custom. Maybe it is a built in module ?"
- 
    RE: SPI python module OnionSpi doesn't work.posted in Omega TalkI've had the same issue in the latest firmware 
 Has anyone managed to make it work ?