Git Product home page Git Product logo

magspoofpi's Introduction

MagSpoofPI.c license: https://github.com/samyk/BPL/blob/master/README.md

MagSpoofPI - code integration by Salvador Mendoza([email protected]) @Netxing
Thanks to Samy Kamkar(@samykamkar) and Sabas(@Sabasacustico)
Details and configuration example: https://netxing.wordpress.com/2016/08/27/magspoofpi/

Main idea: be able to compile MagSpoof with variable tracks, and use it
without arduino dependencies, and use it on the same raspberry pi gpio.
-
Special code for Raspberry Pi implementing avr-gcc without arduino.
-
Main modifications from the original MagSpoof in functions like digitalWrite(),
setup() and loop().

Original MagSpoof: http://samy.pl/magspoof/

Original instructions to program Attiny85 for Raspberry Pi:
http://www.instructables.com/id/Programming-the-ATtiny85-from-Raspberry-Pi/

Dependencies: Download and build avrdude

sudo apt-get install bison automake autoconf flex git gcc
sudo apt-get install gcc-avr binutils-avr avr-libc
git clone https://github.com/kcuzner/avrdude
cd avrdude/avrdude
./bootstrap && ./configure && sudo make install

Setup SPI on the GPIO

sudo raspi-config
and Enable SPI device in the Advanced Options (see picture)
You can check this at the command line with lsmod, no need to reboot. (Maybe need to sudo modprobe spidev)

Download and build WiringPi for the gpio commands

cd ~
git clone git://git.drogon.net/wiringPi
cd wiringPi
./build

cd ~
git clone https://github.com/salmg/MagSpoofPI.git
cd MagSpoofPI
make install

To test it:
sudo python rba.py

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.