[atmega2560/graphictest]

Adafruit_ILI9341 Library - Graphicstest


  This is our GFX example for the Adafruit ILI9341 Breakout and Shield
  ----> http://www.adafruit.com/products/1651

  Check out the links above for our tutorials and wiring diagrams
  These displays use SPI to communicate, 4 or 5 pins are required to
  interface (RST is optional)
  Adafruit invests time and resources providing this open source code,
  please support Adafruit and open-source hardware by purchasing
  products from Adafruit!

  Written by Limor Fried/Ladyada for Adafruit Industries.
  MIT license, all text above must be included in any redistribution



graphicstest.ino

Download (pzw)

View Online


[atmega328p/game_marduino]

Super Marduino

 * Super Marduino
 * A platform game with Arduino Uno.
 * 
 * Requirements:
 * Nokia 5510 display and three buttons.
 * Additional libraries: Adafruit GFX and Adafruit_PCD8544.
 * 
 * Created by Tobias Beise Ulrich
 * 
 * GitHub:
 * https://github.com/tobiasbu/marduino

Play using gamepad:
Select or Jump: A button (mapped as computer keyboard "i" key)
Right : B button (mapped as computer keyboard "l" key)
Left : D button (mapped as computer keyboard "j" key)


marduino source

Download (pzw)

View Online


[PIC16F1619/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[PIC16F1788/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[PIC16F1789/TempHum]

Temperature and humidity meter


SHT3X Temperature sensor/humidity measure using LCD.

MPLABX Temp_Hum project


Download (pzw)

View Online


[PIC16F18324/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[PIC16F18855/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[PIC16F1939/LDRLuxMeter]

LDR Lux Meter


Simple example to use LDR as (inaccurate) Lux Meter.

MPLABX LDRLUX project


Download (pzw)

View Online


[PIC16F628A/7slatch]

Simple example for testing 7 segment display and octal latchs.

Simple hexadecimal counter
XC8 main.c


Download (pzw)

View Online


[PIC16F628A/test_b0]

Simple example for testing board features.

1- Tests 7-segment display;
2- Lamp flashes in RA0 (At this moment, change the jumper position to "LED");
3- Tests red LEDs connected to the PORTB;
4- Test the buttons;
5- Test the green LEDs connected to the PORTA.
MPLABX test_b0 project


Download (pzw)

View Online


[PIC16F628A/test_b0_2]

Simple example for testing board features.

1- Tests LCD display;
2- Test the red LEDs connected to the PORT.
3- Tests matrix keyboard
4- External eeprom test 24LC512
5- Test RTC PCF8563
6- Test serial port sending
7- Tests receiving serial port
8- Read keyboard and send through serial port

MPLABX test_b0_2 project


Download (pzw)

View Online


[PIC16F648A/test_b0]

Simple example for testing board features.

1- Tests 7-segment display;
2- Lamp flashes in RA0 (At this moment, change the jumper position to "LED");
3- Tests red LEDs connected to the PORTB;
4- Test the buttons;
5- Test the green LEDs connected to the PORTA.
MPLABX test_b0 project


Download (pzw)

View Online


[PIC16F777/test_b0]

Simple example for testing board features.

1- Ask to turn on all dip switches;
2- Tests LCD display;
3- Tests 7-segment displays;
4- Test the red LEDs connected to the PORTB and PORTD;
5- Tests push buttons;
6- Test the serial port transmitting;
7- Test the serial port receiving;
8- Tests AD converters connected to potentiometers;
9- Test Relays
10- Tests temperature measurement;
11- Turn on the Heater;
12- Turn on the fan and measure the speed.
13- Tests the matrix keyboard
14- Tests internal eeprom

MPLABX test_b0 project


Download (pzw)

View Online


[PIC16F84A/test_b0]

Simple example for testing board features.

1- Tests 7-segment display;
2- Lamp flashes in RA0 (At this moment, change the jumper position to "LED");
3- Tests red LEDs connected to the PORTB;
4- Test the buttons;
5- Test the green LEDs connected to the PORTA.
MPLABX test_b0 project


Download (pzw)

View Online


[PIC16F877A/DS1307]

DS1307 RTC

Interfacing Real Timer Clock (DS1307) with PIC Microcontroller
Source Code


Download (pzw)

View Online


[PIC16F877A/KeyEncoder]

MM74C922 key encoder example

Simple example to show the use of MM74C922 key encoder with one seven segment display.
MPLABX kcontrol project


Download (pzw)

View Online


[PIC16F877A/test_b0]

Simple example for testing board features.

1- Ask to turn on all dip switches;
2- Tests LCD display;
3- Tests 7-segment displays;
4- Test the red LEDs connected to the PORTB and PORTD;
5- Tests push buttons;
6- Test the serial port transmitting;
7- Test the serial port receiving;
8- Tests AD converters connected to potentiometers;
9- Test Relays
10- Tests temperature measurement;
11- Turn on the Heater;
12- Turn on the fan and measure the speed.
13- Tests the matrix keyboard
14- Tests internal eeprom

MPLABX test_b0 project


Download (pzw)

View Online


[PIC16F886/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[PIC16F887/ADCext]

External ADC reference


FM50 Temperature sensor measure using external ADC reference.

MPLABX AdcExtRef project


Download (pzw)

View Online


[PIC18F26K80/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[PIC18F27K40/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[PIC18F452/test_b0]

Simple example for testing board features.

1- Ask to turn on all dip switches;
2- Tests LCD display;
3- Tests 7-segment displays;
4- Test the red LEDs connected to the PORTB and PORTD;
5- Tests push buttons;
6- Test the serial port transmitting;
7- Test the serial port receiving;
8- Tests AD converters connected to potentiometers;
9- Test Relays
10- Tests temperature measurement;
11- Turn on the Heater;
12- Turn on the fan and measure the speed.
13- Tests the matrix keyboard
14- Tests internal eeprom

MPLABX test_b0 project


Download (pzw)

View Online


[PIC18F4520/ADC_7segLatch]

Counter with decoder and latch

Simple example of how to use the latched 7-segment display with decoder and ADC
main.c

Download (pzw)

View Online


[PIC18F4550/PID]

Discrete Transfer Function and PID example.

1- Use potentiometer to define setpoint
2- Use RB0 switch to select open loop or closed loop with PID controller

Use octave or matlab to calculate transfer function coeficients:

>>gs = tf([1],[0.2 0.25 1]);

Transfer function 'gs' from input 'u1' to output ...

               1
 y1:  --------------------
      0.2 s^2 + 0.25 s + 1

Continuous-time model.

>> gd=c2d(gs,0.1)

Transfer function 'gd' from input 'u1' to output ...

       0.02389 z + 0.02291
 y1:  ----------------------
      z^2 - 1.836 z + 0.8825

Discrete-time model Ts=0.1.


MPLABX PID project


Download (pzw)

View Online


[PIC18F4550/test_b0]

Simple example for testing board features.

1- Ask to turn on all dip switches;
2- Tests LCD display;
3- Tests 7-segment displays;
4- Test the red LEDs connected to the PORTB and PORTD;
5- Tests push buttons;
6- Test the serial port transmitting;
7- Test the serial port receiving;
8- Tests AD converters connected to potentiometers;
9- Test Relays
10- Tests temperature measurement;
11- Turn on the Heater;
12- Turn on the fan and measure the speed.
13- Tests the matrix keyboard
14- Tests internal eeprom

MPLABX test_b0 project


Download (pzw)

View Online


[PIC18F4580/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[PIC18F4620/Aqua18F]

Cooler controller for aquarium with meteorological measurement.

The cooler output is turned on when the aquarium water temperature rises above 29C and off when it drops below 28.8C (hysteresis).

MPLABX Aqua18F project


Download (pzw)

View Online


[PIC18F4620/DS1307]

DS1307 RTC

Interfacing Real Timer Clock (DS1307) with PIC Microcontroller
Source Code


Download (pzw)

View Online


[PIC18F4620/test_b0]

Simple example for testing board features.

1- Ask to turn on all dip switches;
2- Tests LCD display;
3- Tests 7-segment displays;
4- Test the red LEDs connected to the PORTB and PORTD;
5- Tests push buttons;
6- Test the serial port transmitting;
7- Test the serial port receiving;
8- Tests AD converters connected to potentiometers;
9- Test Relays
10- Tests temperature measurement;
11- Turn on the Heater;
12- Turn on the fan and measure the speed.
13- Tests the matrix keyboard
14- Tests internal eeprom

MPLABX test_b0 project


Download (pzw)

View Online


[PIC18F46J50/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[PIC18F47K40/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[PIC18F67J94/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online