steviethecat
  • Member for 6 years, 8 months
  • Last seen more than a week ago
3 answers
votes
13k views
How to enable SPI1 and SPI0 at the same time?
3 votes

In order to use the spi1 port of the Raspberry Pi, you need to set the dtoverlay=spi1-1cs in /boot/config.txt. By default this will use the pins (https://pinout.xyz/pinout/spi): MOSI - pin 38 MISO - ...

View answer
2 answers
votes
3k views
DS18B20 Temperature sensor
3 votes

You are now only looking for a single slave device (/sys/bus/w1/devices/28-0316004f1fff/w1_slave), but you ought to also look at the other /sys/bus/w1/devices/28*/w1_slave device. Better try ...

View answer
2 answers
votes
1k views
Take stills with Picamera() with auto exposure without enabling camera.start_preview()
1 votes

According to the FAQ (https://picamera.readthedocs.io/en/release-1.10/faq.html) there is no way to stop the preview window from opening. The basic recipes on https://picamera.readthedocs.io/en/release-...

View answer
1 answers
votes
2k views
Segmentation Fault on raspbian stretch
1 votes

You might be able to track the cause by using strace on both systems and compare the results. E.g. strace -f ./mybinary. This gives a lot of output, which you might want to redirect to a file, as well ...

View answer
2 answers
vote
900 views
How can I run a Python script on boot with display support?
1 votes

I'd output the script to a logfile and, if needed use tail -f on the file to check the output. But if you really want to direct the output directly, note that both cron and rc.local don't have a tty ...

View answer
1 answers
votes
538 views
Transfer data to http server using get/post request method
1 votes

Use the commandline tool curl with the -X POST or -X GET option. There are a lot of examples of curl usage online.

View answer
2 answers
vote
3k views
Multiple SPI Slaves on Raspberry Pi
Accepted answer
1 votes

Though there are 2 hardware SPI busses available, the support for the second spidev is more limited. For instance, the wiringPi library does not support /dev/spidev1.0. Also, the kernel does not ...

View answer
1 answers
votes
127 views
Converting value from light sensor into picamera shutter speed
Accepted answer
0 votes

The error you produce is not reproducible by only this part of the code. But I'd probably skip all of the if statements and use something like: shutterspeed = ss[ev1-8] Assuming that you use the ev1 ...

View answer
1 answers
votes
568 views
crontab entry with parameters?
0 votes

Well, the .sh script calls sudo before create_ap. Either run the crontab entry as root, or prepend the sudo. So try @reboot sudo /usr/bin/create_ap -n wlan0 MySSID MyPass --daemon

View answer
1 answers
votes
2k views
Link spidev and can device
Accepted answer
0 votes

After searching further, I decided to make my own udev rule in order to fix this: $ cat /etc/udev/rules.d/75-can.rules SUBSYSTEM!="net", GOTO="my_can_end" ACTION!="add", GOTO="my_can_end" DEVPATH=="...

View answer