Git Product home page Git Product logo

Comments (3)

SuhaylZhao avatar SuhaylZhao commented on July 24, 2024

Hi,

  1. The transistor should be NPN type (S8050), Resistance should be 1KΩ.

  2. The last line of code should not have "cleanup", because it causes all GPIOs to stop working.

  3. To verify the circuit, reconnect the line originally connected to GPIO5 to 3.3V or 5V, and the motor will work.

  4. Circuits can be referred to in Chapter 6, Buzzer.

  5. Note that high-power equipment such as motors should be powered by independent power sources to prevent damage to raspberry pi.

Thanks.

from freenove_ultimate_starter_kit_for_raspberry_pi.

bkannadassan avatar bkannadassan commented on July 24, 2024

Hi,
Thanks I took example from Chapter 6, now its working but apparently its always making sound even when I do on/off. It stops only when I do cleanup. Attaching circuit and code for your reference. Btw When I try attaching motor though its always making sound, I see it not working. Can you let me know solution for both ?.

-Balaji

whatsapp image 2019-01-21 at 10 35 36
whatsapp image 2019-01-21 at 10 36 00
whatsapp image 2019-01-21 at 10 46 14

from freenove_ultimate_starter_kit_for_raspberry_pi.

SuhaylZhao avatar SuhaylZhao commented on July 24, 2024

Hi,

  1. The connection of the EC pole of the transistor is wrong. It should be exchanged.

  2. The motor has the sound but does not work, may be not enough power. It is recommended that you use the power supply module. The positive (5V) is connected to the C pole of the transistor and the negative to the GND.

Please try it.

Thanks.

from freenove_ultimate_starter_kit_for_raspberry_pi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.