2

I am generating a 50% duty PWM signal from port 11 (pin 23) on a Raspberry Pi 3.

import RPi.GPIO as GPIO
from time import sleep

GPIO.setmode(GPIO.BCM)
GPIO.setup(11,GPIO.OUT)
p=GPIO.PWM(11,600)
p.start(50.0)

I have a spare dashboard of a VW Golf 4 car. The dashboard is connected to 12V.

enter image description here

Pin 11 on the car dashboard is the input pin for the tachometer. It is supposed to work at 5V.

I expected that by connecting the pin GPIO11 from Pi to the pin 11 on the dashboard should do the trick, but it doesn't.

I also tried with pin GPIO7 and it still didn't work.

I am sure I'm missing something in the circuit. Do you have any ideas?

1 Answers1

1

Pin 11 on the car dashboard is the input pin for the tachometer. It is supposed to work at 5V.

I expected that by connecting the pin GPIO11 from Pi to the pin 11 on the dashboard should do the trick, but it doesn't.

The GPIOs are not 5V logic, they are 3.3V. They may work to drive 5V inputs, but not probably not reliably.

You should be able to do PWM of this sort through a level shifter, although I make no promises.

goldilocks
  • 60,325
  • 17
  • 117
  • 234