Go to advanced search

by Brandon92
Thu Aug 02, 2018 12:06 am
Forum: General discussion
Topic: GPIO as GND
Replies: 47
Views: 4449

Re: GPIO as GND

@drgeoff I do understand you and what you mean. And I don't say my explanation is 100% correct. But I found this discussion interesting. So, I give my gross explanation about what could happens. To continue with this and add some "user scenario" to my explanation, what happens when you preforme the ...
by Brandon92
Wed Aug 01, 2018 9:58 pm
Forum: General discussion
Topic: GPIO as GND
Replies: 47
Views: 4449

Re: GPIO as GND

there is still a problem with reverse current getting to the Pi's 3V3 rail, which is a big no-no Pi killer. I disagree with that. A few tens of milliamps from elsewhere into the 3.3 volt rail will not cause damage. It just means the 3.3 volt output of the onboard regulator or dc-dc converter does n...
by Brandon92
Wed Aug 01, 2018 6:51 pm
Forum: General discussion
Topic: GPIO as GND
Replies: 47
Views: 4449

Re: GPIO as GND

@PiGraham
Okay, I agree that the current is very low in this case. But my point was more that the user need to be careful when using a 5v "device" and the controller works with 3.3V. If they make a mistake it can go down hill very quickly.
by Brandon92
Wed Aug 01, 2018 6:11 pm
Forum: Troubleshooting
Topic: Pi Zero W has 5V difference on its pins but not working
Replies: 1
Views: 241

Re: Pi Zero W has 5V difference on its pins but not working

I assume that you used the pin numbers from the pin header and not from the GPIO. Is it possible to provide how you connected the motor driver to the pi. I don't know how it connected, but its possible that you motor diver gives to much "noise" on you power-rail. It also possible that when you turn ...
by Brandon92
Wed Aug 01, 2018 4:58 pm
Forum: General discussion
Topic: GPIO as GND
Replies: 47
Views: 4449

Re: GPIO as GND

You shouldn't connect 5V to gpio but here the LEDs will drop at least 1.7V so the gpio will not see more than 5 - 1.7 = 3.3V when the output is off so that should be OK. When the LED is on the pin voltage will be close to zero, of course. Use 3.3V if that works for you or use 5V if needed. Well I'm...
by Brandon92
Wed Aug 01, 2018 4:05 pm
Forum: General discussion
Topic: GPIO as GND
Replies: 47
Views: 4449

Re: GPIO as GND

Okay, but remember. If you connect to many LEDs on a single GPIO pin. That pin can be damaged and will not work again.
So, how many of those modules are you going to test, that are connected to you PI?
by Brandon92
Wed Aug 01, 2018 2:36 pm
Forum: General discussion
Topic: GPIO as GND
Replies: 47
Views: 4449

Re: GPIO as GND

--but I was told that using GPIO pins to ground devices is not a good idea (hence the topic title). Personal I think that is not true. It's often more cheaper, as you called, to ground a devices than connect it to the VCC. And its often provide more current than when you connect it to "Vcc". As sho...
by Brandon92
Wed Aug 01, 2018 12:12 pm
Forum: General discussion
Topic: GPIO as GND
Replies: 47
Views: 4449

Re: GPIO as GND

Do you have more information about what for kind of LED bar you have. And for example datasheet would be very helpful. Because of the maximal current that we can expect. And this tells us if a external transistor is required.
by Brandon92
Wed Aug 01, 2018 11:55 am
Forum: General discussion
Topic: GPIO as GND
Replies: 47
Views: 4449

Re: GPIO as GND

To get a little bit more technical about this. This image is a very basic implementation about what happens inside your pi. GPIO io.png When you write in you code that you want a gpio pin to be high. The hardware close the gpio.high switch. In these case, your LED is off. And when your write in your...
by Brandon92
Tue Jul 31, 2018 8:09 pm
Forum: General discussion
Topic: GPIO pins current leakage
Replies: 3
Views: 823

Re: GPIO pins current leakage

Hello, Your code is "good" and its working as expected. The problem is when you press your switch turns a couple times on and off, called Switch Debouncing. You can solve this in your software or in your hardware. More information about this: http://www.labbookpages.co.uk/electronics/debounce.html T...
by Brandon92
Mon Jul 30, 2018 12:33 pm
Forum: Nederlands
Topic: ADAFRUIT 3cm 4-Digit 7-Segment Display met I2C Backpack (ADA-1268)
Replies: 2
Views: 2554

Re: ADAFRUIT 3cm 4-Digit 7-Segment Display met I2C Backpack (ADA-1268)

Hallo, Als ik snel naar het https://learn.adafruit.com/adafruit-led-backpack/downloads schema kijk. Dan hoop ik voor je dat je raspberry pi3b het overleeft heeft. Aangezien zijn pinnen 3.3V tolerant zijn. En je zet er 5V op. Dit gebeurt wel via een pull-up weerstand, dus je kunt geluk hebben en waar...
by Brandon92
Sun Jul 29, 2018 8:20 pm
Forum: Python
Topic: Program works with python, but not with python3
Replies: 5
Views: 1041

Re: Program works with python, but not with python3

I think I found out what the "real" problem is in my case. I think that the problem lies in the "RPi.GPIO" library. Because this is the location of the fault: from /usr/lib/python3/dist-packages/RPi/_GPIO.cpython-35m-arm-linux-gnueabihf.so And this is the code that's generation the fault: def TF_act...
by Brandon92
Fri Jul 27, 2018 6:16 pm
Forum: Troubleshooting
Topic: Pi Zero W slow auto run of Python script when no monitor/keyboard attached
Replies: 24
Views: 2423

Re: Pi Zero W slow auto run of Python script when no monitor/keyboard attached

Hello, I have tested how long my raspberry pi zero w takes to boot up, without a monitor or keyboard connected. I have tested it to log in automatic with WinSCP. And it only takes 38 sec. to boot up and connect to the WinSCP. After that I can view the files in my zero. The only thing I did is this: ...
by Brandon92
Fri Jul 27, 2018 1:55 pm
Forum: Troubleshooting
Topic: Pi Zero W slow auto run of Python script when no monitor/keyboard attached
Replies: 24
Views: 2423

Re: Pi Zero W slow auto run of Python script when no monitor/keyboard attached

Hello,

First of all, I didn't try this myself and maybe this is the wrong approach.
But by using the command "sudo raspi-config" -> Boot options -> B1 -> B2 Console Autologin

This will not load the desktop GUI and I think it should be faster.

Brandon
by Brandon92
Fri Jul 27, 2018 12:23 pm
Forum: Nederlands
Topic: ms-dos
Replies: 3
Views: 3946

Re: ms-dos

Hallo, Als eerste weet ik hier ook niet alles van, maar je raspberry draait op Linux en ms-dos is van Microsoft. Maar ik zag wel dat er ms-dos emulators zijn die op Linux draaien. Zoals bijvoorbeeld deze: https://opensource.com/article/17/10/run-dos-applications-linux Ik weet echter niet als hij goe...
by Brandon92
Fri Jul 27, 2018 12:11 pm
Forum: Nederlands
Topic: luidsprekers
Replies: 3
Views: 5766

Re: luidsprekers

Hallo, Je raspberry heeft een audio uitgang, namelijk de 3,5mm jack. Daarin kan je bijvoorbeeld een koptelefoon in drukken om geluid uit je raspberry te krijgen. En praktisch alle versterkers hebben een aux ingang waar je met eventuele adapter kabeltje je raspberry zo op aan kan sluiten. Afhankelijk...
by Brandon92
Fri Jul 27, 2018 8:51 am
Forum: Python
Topic: Program works with python, but not with python3
Replies: 5
Views: 1041

Re: Program works with python, but not with python3

Hello, Thanks for the reply. When I run the program without the gbd, I get this message: "Segmentation fault". However I can get at two different stages. And this time the data is not saved in the .scv file. pi@pi_debug:~ $ python3 /home/pi/Documents/vijverlog_v4.py Duration 0.0 Preset at: 153268096...
by Brandon92
Thu Jul 26, 2018 8:05 pm
Forum: Troubleshooting
Topic: Pi Zero W slow auto run of Python script when no monitor/keyboard attached
Replies: 24
Views: 2423

Re: Pi Zero W slow auto run of Python script when no monitor/keyboard attached

Hello, I also tried to run a python program at startup on a raspberry py zero w this week. I have tried methode 4 from this link: https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/#systemd And I need to say it's working for me and it doesn't take a couple extra min...
by Brandon92
Thu Jul 26, 2018 7:48 pm
Forum: Python
Topic: Program works with python, but not with python3
Replies: 5
Views: 1041

Program works with python, but not with python3

Hello, I started for the first-time programming in python and on the raspberry pi zero w. But the error that I get is out of my knowledge. The program works well when I run it with “python”, but it will crash if I try it with “python3”. The program can be found below. The purposes of the program is ...

Go to advanced search