Coder Social home page Coder Social logo

Use SPI1 about mfrc522-rpi HOT 8 CLOSED

firsttris avatar firsttris commented on May 29, 2024
Use SPI1

from mfrc522-rpi.

Comments (8)

firsttris avatar firsttris commented on May 29, 2024

hey sir,

i think your issue is that i initialize wiringPI with channel 0 but you need channel 1
https://github.com/firsttris/mfrc522-rpi/blob/master/index.js#L7

wiringPiSPISetup (int channel, int speed) ;. This is the way to initialise a channel (The Pi has 2 channels; 0 and 1).

regards
Tristan

from mfrc522-rpi.

firsttris avatar firsttris commented on May 29, 2024

i will add the possibility to choose the spi channel

from mfrc522-rpi.

firsttris avatar firsttris commented on May 29, 2024

please update to 1.1.0 where you have the ability to choose the spi channel.
see example:
https://github.com/firsttris/mfrc522-rpi/blob/master/test/read.js#L4

was not able to test it since im on leave currently.

best regards
tristan

from mfrc522-rpi.

liko28s avatar liko28s commented on May 29, 2024

In fact, it was the first change I made in the index, however I did not detect the device, I added a capture
image
note that MFRC522-PYTHON Works fine

from mfrc522-rpi.

firsttris avatar firsttris commented on May 29, 2024

just to be sure...
have you activated SPI in Raspbian properly ?
https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md

from mfrc522-rpi.

liko28s avatar liko28s commented on May 29, 2024

yes, in /boot/config.txt

dtparam=spi=on
dtoverlay=spi1-1cs
dtoverlay=pi3-disable-bt

bt is disable for security

from mfrc522-rpi.

firsttris avatar firsttris commented on May 29, 2024

shouldn't dmesg detect the module appart from which implementation you are using?

i will do some tests when im back home.

how do i psyically connect my module to use SPI 1 ?

regards
Tristan

from mfrc522-rpi.

firsttris avatar firsttris commented on May 29, 2024

using soft-pi now instead of wiring-pi, please check and re-open if error still persists

from mfrc522-rpi.

Related Issues (17)

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.