Hot answers tagged

6

Thats because by using 'GPIO.setmode(GPIO.BCM)' you are specifying the BCM numbering convention. GPIO 18 is actual pin number 12.


5

What happened to Raspberry Pi 2- and 3- Model A? Basically they never got arround to making them. Is there a major distinguishable difference between A and B models independent of the generation? The "B" models have the USB hub with Ethernet chip while the "A" models do not. Therefore A models only have a single USB port and no Ethernet port. A models ...


5

You are running Raspbian Stretch and use /etc/rc.local. I don't have followed your attempts to find the error in detail but it seems you presume old style sequential behavior of rc.local for SysV init system. But you cannot do it since Raspbian Jessie, the predecessor of Raspbian Stretch. Since then SysV including rc.local is emulated by systemd that works ...


4

Python is included with the Raspbian distribution, and you won't need to install it separately. There are two versions of Python that are in current use, and both are included with Raspbian. The Raspberry Pi Organization has an introductory page for new Python users that you should read as it explains some of the basics.


4

See How can you recover your password? which explains how to reset the password. HOWEVER if someone has modified the password there is no way of knowing what else was done. Either restore from your backup OR do a fresh install - you should have given up on Jessie a year ago - it is unsupported! The VERY FIRST thing I do on ANY installation is change the ...


4

You don't want to relaunch your program like that - every time you do, you fork the process. See fork bomb. If you construct your program so that you have a block of code you can re-run when the button is pressed, that would work much better. from gpiozero import Button btn = Button(17) while True: btn.wait_for_press() print("button was pressed")


4

From a shell window, type cat /proc/device-tree/model. For example: $ cat /proc/device-tree/model Raspberry Pi 3 Model B Rev 1.2


3

L4 through L7 appear to be surface-mount common-mode chokes on the HDMI output's TMDS pairs. It may also be possible to bypass a missing choke by bridging each processor-side pad (right side of photo in question) to its corresponding connector-side pad (left) with thin wire or component lead trimmings, at the expense of the HDMI output being less reliable ...


3

This answer intended to answer your specific question, but also to provide an example of an engineering approach to the problem. How to detect water There are many ways that water could be detected by a circuit. We could use a float and a microswitch, or a capacitive level sensor, or a float with a magnet and a reed switch, or bounce a laser off the ...


3

The Foundation's documentation make it sound that adduser should be present on a recent Raspbian: Create a new user You can create additional users on your Raspbian installation with the adduser command. Enter sudo adduser bob and you'll be prompted for a password for the new user bob. Leave this blank if you don't want a password. If it is ...


3

Turns out it was some sort of OS glitch or incompatibility. I ran the following commands overnight and it fixed the problem sudo umount /dev/sda1 # /dev/sda1 is the name of my external drive partition sudo fsck -Cy /dev/sda1


3

To troubleshoot your problem run systemctl status ssh. You can see from the output if the ssh server is running and enabled and also see the most recent lines from the log. journalctl -e -u ssh.service could also be helpful to find the issue. It will show everything logged regarding the specified unit. As we clarified in the comments you found following ...


2

Strange I2C behaviour ... sorry for the title, I don't know how to describe further Well, in the last couple of months playing with a couple of I2C devices, I have been in the same trouble as yours. First,a more specific title could be "A Intermittently Unreliable I2C Device Address Detection Problem". Accidentally from then I got strange results ...


2

Sorry about digging up an old thread, but I came across it while looking for ideas on setting up my own ILI9488 on a Pi, and I've got a solid hunch on this problem. I have not tried this, but have seen this issue with other display controllers (ILI9341). There is an BGR/RGB parameter which sets the colour order. It looks like you have a blue/red swap issue (...


2

Finally - as of November 2018 - there is a Raspberry Pi 3 Model A+; which the Foundation states is [...] one of our most frequently requested “missing” products. By the way, the Foundation also points out [...] that the 3+ platform is the final iteration of the “classic” Raspberry Pi: whatever we do next will of necessity be less of an evolution, ...


2

You can try Minos, v0.2.1 has support Raspberry Pi 3. https://github.com/minos-project/minos-hypervisor


2

It appears that VMware are working on a bare-metal hypervisor (ESXi) for 64-bit Arm processors, as they have showed off on their VMworld US shindig in Las Vegas (August 2018). It seems that soon we will be able to cluster multiple Raspberry Pi 3 model B+ (arm64), into a normal working virtualization solutions as wee see today with x86. Reference


2

It will depend which operating system you choose, a common one for first go is Raspbian. Rasspberrypi.org/downloads These both have python 2.7 and 3.2(?) version included. Have fun!


2

If you completely remove the shield, and connect pin 8 to pin 10 on the Pi, can you get characters echoed back? How are you writing to the port? Through /dev/ttyX ? Which terminal emulator? Minicom? Make sure it is not in local echo mode and that whatever you type comes back. Then disconnect the link from 8 to 10 and confirm the echo stops. Until you can ...


2

You can use USB pendrives as much as you have free USB slots. If you want to keep programs and data on different storrages you can follow Debian - Recommended Partitioning Scheme. For new users, personal Debian boxes, home systems, and other single-user setups, a single / partition (plus swap) is probably the easiest, simplest way to go. [..] For ...


2

Milliways and Dirk are correct, import* was the problem. I should have realized that both GPIO Zero and Tkinter have a Button class, so one was overwriting the other and causing the error. Thank you for the help!


2

First, try to do a clean install with this image -- the image provided by the company that manufactured the touchscreen, preloaded with the driver you need. Use Etcher, and follow the steps here, using the image above. Don't forget to "sudo apt-get update" and "sudo apt-get upgrade." If that fails, Do a clean install of Raspbian (if you don't have any ...


2

If two devices are compatible to the point they can share the same driver, the driver usually gets the name of the first device it was implemented for. Additionally, in your case the driver specifically states We can't determine type by probing. Simply put, there is no way for the driver to tell whether you got a DS1307 or a DS3231.


2

You can't access the data directory locally, nextcloud will complain if you change the permissions or add files directly as an anti tampering measure. To do what you describe you'll need to use webdav and mount nextcloud as a webdav share on the pi and then you'll be able to save files straight to it via that folder.


2

The number of relays is an open ended question.You can have as many relays as your configuration allows you to have. If you are using expansion boards that is your limit. If you are using SPI controlled relays then probably the max amount the SPI addressing allows you to have. You can connect two Pi's together but you will need to write software to control ...


2

This should be a top level choice in the main menu of menuconfig: [ ] Enable loadable module support You want to select that, then there is a submenu; the defaults there are probably fine particularly if you are just building a module and not the whole kernel. Be warned though, if the source version you are using doesn't match the kernel you want to load ...


2

Matplotlib in the configuration as shown in your code tries to output its graph to the screen. That fails horribly since Jessie lite comes without the X server. No GUI, no Matplotlib rendering output. ... saving plot locally If you're not interrested in directly showing the graph via Matplotlib but want to save that plot to a file instead one can use ...


2

I'm trying to serial communication from Raspbian using Python to Arduino communicate using terminal echo working,only with the python creating problem. I have written a little python test program to do the following: Repeat sending characters. Loop back. You may like to compare yours with my working program. My serial test program The ...


2

Its because you are calling GPIO.cleanup() in your while loop: while(1): forward(3) # reverse(3) GPIO.cleanup() Comment out the cleanup: while(1): forward(3) # reverse(3) #GPIO.cleanup()


Only top voted, non community-wiki answers of a minimum length are eligible