Coder Social home page Coder Social logo

coral_scanner's Introduction

##################################################
##      Get rights for USB access               ##
##################################################




##################################################
##      coral scanner software repository       ##
##################################################


The coral scanner software consists of three parts:

1. The user interface (subfolder "user_interface")
2. The microcontroller firmware to control the stepper motors of the table
   (subfolder "firmware")
3. The VHDL code for the PADIWA-FPGA board which handles the PMT signal detection
   and information processing.
   
   

##################################################
##      compiling the microcontroller code      ##
##################################################

Prerequisites:
  gcc-avr
  dfu-programmer


cd ./firmware
make clean
make
#connect atmega32u2 in bootloader mode (stock bootloader!)
make program
#you might have to run the last step as root, if you don't have suitable udev policies for your atmega32u2


##################################################
##             compiling VDHL code              ##
##################################################


cd ./padiwa_vhdl
git clone git@jspc29:/trb3
git clone git@jspc29:/trbnet

cd ./padiwa/coral_counter
. /d/jspc29/lattice/34_settings.sh
export PATH=$PATH:/home/hadaq/bin/

./compile_padiwa_frankfurt.pl

# now use diamond programmer to flash the resulting bit file to your PADIWA FPGA (in "workdir")
# or use the last working bit file in folder "bitfiles"


##################################################
##       starting the web user interface        ##
##################################################

# make sure you have the following perl modules installed, if not install them with CPAN

Procedure: 

- Open a konsole as super user
- cpan
- agree with update 

Update of a module: cpan <name>


Packages <name> = 

CGI Data::Dumper Device::SerialPort Digest::SHA::PurePerl File::Basename
Getopt::Long JSON MIME::Base64 Net::SMTP::SSL Proc::Daemon Storable
SVG Time::HiRes

Close SU konsole

# then start the web server on port <your port>
cd ./user_interface
./httpi localhost <your port>
# it might be wise to keep this process running, maybe with the help of "screen"


# now direct your webbrowser to http://localhost:<your port> and enjoy the colorful user interface I made.
#     user: coral
# password: belize2
















coral_scanner's People

Contributors

acidbourbon avatar

Watchers

 avatar  avatar

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.