Skip to content

lochotzke/hole-in-one

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hole-in-one

The program uses a hall effect sensor to calculate when a metal ball needs to be released by a magnet to drop through a hole in a spinning disk. It was was written for a PIC16F84A with an external clock of 4MHz.

C Data Types

Some data types are of course smaller than what you expect. The following table is just for reference to not forget about it.

Type Size (bits) Arithmetic Type
bit 1 Unsigned integer
signed char 8 Signed integer
unsigned char 8 Unsigned integer
signed short 16 Signed integer
unsigned short 16 Unsigned integer
signed int 16 Signed integer
unsigned int 16 Unsigned integer
signed short long 24 Signed integer
unsigned short long 24 Unsigned integer
signed long 32 Signed integer
unsigned long 32 Unsigned integer

Information taken from "HI-TECH C® for PIC10/12/16 User's Guide" page 54.

Development Environment

PikLab

http://piklab.sourceforge.net/
https://launchpad.net/~michael-gruz/+archive/elektronik
sudo add-apt-repository ppa:michael-gruz/elektronik
sudo apt-get update && sudo apt-get install piklab

GPUtils

http://gputils.sourceforge.net/
sudo apt-get install gputils

HI-TECH C® Compiler for PIC10/12/16 MCUs (PICC Compiler)

http://www.htsoft.com/

GPSim

http://gpsim.sourceforge.net/
sudo apt-get install gpsim

picp (only necessary for PICSTART Plus rev. 0)

http://home.pacbell.net/theposts/picmicro/ (down)
sudo apt-get install picp
Erase: picp -c /dev/ttyUSB0 16f84a -ef
Write: picp -c /dev/ttyUSB0 16f84a -wp *.hex

Links

General

Tutorials

Code Examples

Misc

DE2 Cyclone II EP2C35F672C6

DE2-70 Cyclone II EP2C70F896C6

License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published