[Arduino_Mega/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


[Arduino_Nano/atmega328p/MultiDisplay]

LCD HD44780 with PCF8574 Multi Display

// ----------------------------------------------------------------------------
// MultiDisplay - simple demonstration of accessing multiple lcds
// Created by Bill Perry 2016-07-02
// bperrybap@opensource.billsworld.billandterrie.com
//
// This example code is unlicensed and is released into the public domain
// ----------------------------------------------------------------------------
// 
// This sketch is for LCDs with PCF8574 or MCP23008 chip based backpacks
//
// Sketch will print lcd instance number on top line with i2c address
// and will print the amount of time since the Arduino has been reset
// on the second row.
//

MultiDisplay.ino

Download (pzw)

[Arduino_Nano/atmega328p/servo_Knob]

Controlling a servo position using a potentiometer (variable resistor)

 Controlling a servo position using a potentiometer (variable resistor)
 by Michal Rinott 

 modified on 8 Nov 2013
 by Scott Fitzgerald
 http://www.arduino.cc/en/Tutorial/Knob
Knob.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/3Dcube]

MPU6050 and 3D cube


Time to rotate a virtual cube on a 0.96″ OLED Display! In this tutorial, I’ll be using the MPU6050 to get the acceleration values of the X-axis and the Y-Axis, which would then be translated to the speed at which the cube is rotating at. I’ll not be using the values of the gyroscope this time but I may used it in the future.

Tutorial MPU6050 and 3D cube

Download (pzw)

[Arduino_Uno/atmega328p/ADXL345_I2C]

ADXL345 Accel example I2C

/*  ********************************************* 
 *  SparkFun_ADXL345_Example
 *  Triple Axis Accelerometer Breakout - ADXL345 
 *  Hook Up Guide Example 
 *  
 *  Utilizing Sparkfun's ADXL345 Library
 *  Bildr ADXL345 source file modified to support 
 *  both I2C and SPI Communication
 *  
 *  E.Robert @ SparkFun Electronics
 *  *********************************************/

SparkFun_ADXL345_Example.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/ADXL345_SPI]

ADXL345 Accel example SPI

/*  ********************************************* 
 *  SparkFun_ADXL345_Example
 *  Triple Axis Accelerometer Breakout - ADXL345 
 *  Hook Up Guide Example 
 *  
 *  Utilizing Sparkfun's ADXL345 Library
 *  Bildr ADXL345 source file modified to support 
 *  both I2C and SPI Communication
 *  
 *  E.Robert @ SparkFun Electronics
 *  *********************************************/

SparkFun_ADXL345_Example.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/AnalogButtons]

Analog Buttons

Arduino analog input push buttons.

AnalogButtons.ino

Download (pzw)

[Arduino_Uno/atmega328p/AnalogInOutSerial]

Analog input, analog output, serial output

  Reads an analog input pin, maps the result to a range from 0 to 255 and uses
  the result to set the pulse width modulation (PWM) of an output pin.
  Also prints the results to the Serial Monitor.

  The circuit:
  - potentiometer connected to analog pin 0.
    Center pin of the potentiometer goes to the analog pin.
    side pins of the potentiometer go to +5V and ground
  - LED connected from digital pin 9 to ground

  created 29 Dec. 2008
  modified 9 Apr 2012
  by Tom Igoe

  This example code is in the public domain.

  http://www.arduino.cc/en/Tutorial/AnalogInOutSerial
AnalogInOutSerial.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/Arduino_sound]

Arduino Star Wars Song for Piezo

Nick James nicksort
https://gist.github.com/nicksort/4736535
arduino_sound.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/BMP180]

BMP180 Pressure sensor

  This is an example for the BMP085 Barometric Pressure & Temp Sensor
  Designed specifically to work with the Adafruit BMP085 Breakout 
  ----> https://www.adafruit.com/products/391
  These pressure and temperature sensors use I2C to communicate, 2 pins
  are required to interface
  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.  
  BSD license, all text above must be included in any redistribution

BMP085test.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/BMP280]

BMP280 Pressure sensor

  This is a library for the BMP280 humidity, temperature & pressure sensor
  Designed specifically to work with the Adafruit BMP280 Breakout
  ----> http://www.adafruit.com/products/2651
  These sensors use I2C or SPI to communicate, 2 or 4 pins are required
  to interface.
  Adafruit invests time and resources providing this open source code,
  please support Adafruit andopen-source hardware by purchasing products
  from Adafruit!
  Written by Limor Fried & Kevin Townsend for Adafruit Industries.
  BSD license, all text above must be included in any redistribution

bmp280test.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/cardinfo]

SD card test

  This example shows how use the utility libraries on which the'
  SD library is based in order to get info about your SD card.
  Very useful for testing a card when you're not sure whether its working or not.

  The circuit:
    SD card attached to SPI bus as follows:
 ** MOSI - pin 11 on Arduino Uno/Duemilanove/Diecimila
 ** MISO - pin 12 on Arduino Uno/Duemilanove/Diecimila
 ** CLK - pin 13 on Arduino Uno/Duemilanove/Diecimila
 ** CS - depends on your SD card shield or module.
 		Pin 4 used here for consistency with other Arduino examples


  created  28 Mar 2011
  by Limor Fried
  modified 9 Apr 2012
  by Tom Igoe


Click on sdcard connector to change sdcard file image.
CardInfo.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/ColorPallete]

FastLED Library - Color Palette example

// This example shows several ways to set up and use 'palettes' of colors
// with FastLED.
//
// These compact palettes provide an easy way to re-colorize your
// animation on the fly, quickly, easily, and with low overhead.
//
// USING palettes is MUCH simpler in practice than in theory, so first just
// run this sketch, and watch the pretty lights as you then read through
// the code.  Although this sketch has eight (or more) different color schemes,
// the entire sketch compiles down to about 6.5K on AVR.
//
// FastLED provides a few pre-configured color palettes, and makes it
// extremely easy to make up your own color schemes with palettes.
//
// Some notes on the more abstract 'theory and practice' of
// FastLED compact palettes are at the bottom of this file.


ColorPalette.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/counter_dec]

Counter with decoder

Simple example of how to use the multiplexed 7-segment display with decoder 
counter_dec.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/counter_latch]

Counter with decoder and latch

Simple example of how to use the latched 7-segment display with decoder 
counter_latch.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/DHT11]

DHT11 humidity and temperature sensor

// Example testing sketch for various DHT humidity/temperature sensors
// Written by ladyada, public domain
//
// REQUIRES the following Arduino libraries:
// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library
// - Adafruit Unified Sensor Lib: https://github.com/adafruit/Adafruit_Sensor

DHTtester.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/DHT22]

DHT22 humidity and temperature sensor

// Example testing sketch for various DHT humidity/temperature sensors
// Written by ladyada, public domain
//
// REQUIRES the following Arduino libraries:
// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library
// - Adafruit Unified Sensor Lib: https://github.com/adafruit/Adafruit_Sensor

DHTtester.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/display_bargraph]

LED bar graph


  Turns on a series of LEDs based on the value of an analog sensor.
  This is a simple way to make a bar graph display. Though this graph uses 10
  LEDs, you can use any number by changing the LED count and the pins in the
  array.

  This method can be used to control any series of digital outputs that depends
  on an analog input.

  The circuit:
  - LEDs from pins 2 through 9 to ground

  created 4 Sep 2010
  by Tom Igoe

  This example code is in the public domain.

  http://www.arduino.cc/en/Tutorial/BarGraph
barGraph.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/DS18B20]

DS18S20 Temperature sensor

// OneWire DS18S20, DS18B20, DS1822 Temperature Example
//
// http://www.pjrc.com/teensy/td_libs_OneWire.html
//
// The DallasTemperature library can do all this work for you!
// https://github.com/milesburton/Arduino-Temperature-Control-Library

DS18x20_Temperature.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/Encoder_basic]

Encoder Library - Basic Example

/* Encoder Library - Basic Example
 * http://www.pjrc.com/teensy/td_libs_Encoder.html
 *
 * This example code is in the public domain.
 */


Basic.pde

Download (pzw)

View Online


[Arduino_Uno/atmega328p/espmsim_server]

Serial esp8266/espmsim TCP server

Open the esp8266 modem simulator in tools menu and connect the serial 
(or a real esp8266 connected in a real serial port).

To use the serial port, first configure the com0com or tty0tty as 
described in the help and open the serial terminal (cutecom).

When the server is loaded, open a browser in the address http://127.0.0.1:2000 

espmsim_server.ino

Download (pzw)

[Arduino_Uno/atmega328p/firmata_ethernet]

Firmata Library - Standard Firmata Ethernet

  StandardFirmataEthernet is a TCP client/server implementation. You will need a Firmata client library
  with a network transport that can act as a TCP server or client in order to establish a connection between
  StandardFirmataEthernet and the Firmata client application.
  To use StandardFirmataEthernet you will need to have one of the following
  boards or shields:
  - Arduino Ethernet shield (or clone)
  - Arduino Ethernet board (or clone)
  - Arduino Yun
  Follow the instructions in the ethernetConfig.h file (ethernetConfig.h tab in Arduino IDE) to
  configure your particular hardware.
  NOTE: If you are using an Arduino Ethernet shield you cannot use the following pins on
  the following boards. Firmata will ignore any requests to use these pins:
  - Arduino Uno or other ATMega328 boards: (D4, D10, D11, D12, D13)
  - Arduino Mega: (D4, D10, D50, D51, D52, D53)
  - Arduino Leonardo: (D4, D10)
  - Arduino Due: (D4, D10)
  - Arduino Zero: (D4, D10)
  If you are using an ArduinoEthernet board, the following pins cannot be used (same as Uno):
  - D4, D10, D11, D12, D13


StandardFirmataEthernet.ino

Download (pzw)

[Arduino_Uno/atmega328p/firmata]

Firmata Library - Standard Firmata

  Firmata is a generic protocol for communicating with microcontrollers
  from software on a host computer. It is intended to work with
  any host computer software package.
  To download a host software package, please click on the following link
  to open the list of Firmata client libraries in your default browser.
  https://github.com/firmata/arduino#firmata-client-libraries
  Copyright (C) 2006-2008 Hans-Christoph Steiner.  All rights reserved.
  Copyright (C) 2010-2011 Paul Stoffregen.  All rights reserved.
  Copyright (C) 2009 Shigeru Kobayashi.  All rights reserved.
  Copyright (C) 2009-2016 Jeff Hoefs.  All rights reserved.
  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.
  See file LICENSE.txt for further informations on licensing terms.
  Last updated August 17th, 2017


StandardFirmata.ino

Download (pzw)

[Arduino_Uno/atmega328p/FreeRtos]

Projeto simples com FreeRTOS e Arduino


Principais conceitos de RTOS para iniciantes com Arduino e FreeRTOS escrito por Pedro Bertoleti.


Artigo Original no site Embarcados

Download (pzw)

[Arduino_Uno/atmega328p/game_lcd]

Arduino LCD Game

//  _ ___ _______     ___ ___ ___  ___ _   _ ___ _____ ___ 
// / |_  )__ /   \   / __|_ _| _ \/ __| | | |_ _|_   _/ __| 
// | |/ / |_ \ |) | | (__ | ||   / (__| |_| || |  | | \__ \ 
// |_/___|___/___/   \___|___|_|_\\___|\___/|___| |_| |___/ 
// 
// Arduino LCD Game
// 
// Made by 123d Circuits
// License: CC-BY-SA 3.0
// Downloaded from: https://circuits.io/circuits/1073419-arduino-lcd-game

Play using gamepad A button (mapped as computer keyboard "i" key)

ArduinoLCDGame.ino

Download (pzw)

View Online


[Arduino_Uno/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


[Arduino_Uno/atmega328p/game_snake]

Snake Game


/**** Snake Game by Abhinav Faujdar *****/


Play using gamepad:
Up : A button (mapped as computer keyboard "i" key)
Down : C button (mapped as computer keyboard "k" key)
Right : B button (mapped as computer keyboard "l" key)
Left : D button (mapped as computer keyboard "j" key)
Pause : E button (mapped as computer keyboard "e" key)



snake.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/IO_expander]

MCP23S17 IO expander

   MCP23S17_outtest.ino
  
   MCP23S17 library example

MCP23S17_outtest.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/l293_motor]

L293 Library - MotorControl Demo

 * Bidirectional Motor Control with standalone L293
 *
 * Example of using L293 library to control one or more DC Birirectional Motors with the standalone configuration of the L293
 *
 * Created by Giuseppe Masino, 25 may 2016
 * Author URL http://www.facebook.com/dev.giuseppemasino
 *
 * This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/.
 *


MotorControl_Demo.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/LCD_hd44780]

LCD hd44780 - LiquidCrystal Library - Custom Characters

 Demonstrates how to add custom characters on an LCD  display.
 The LiquidCrystal library works with all LCD displays that are
 compatible with the  Hitachi HD44780 driver. There are many of
 them out there, and you can usually tell them by the 16-pin interface.

 This sketch prints "I  Arduino!" and a little dancing man
 to the LCD.

  The circuit:
 * LCD RS pin to digital pin 12
 * LCD Enable pin to digital pin 11
 * LCD D4 pin to digital pin 5
 * LCD D5 pin to digital pin 4
 * LCD D6 pin to digital pin 3
 * LCD D7 pin to digital pin 2
 * LCD R/W pin to ground
 * 10K potentiometer:
 * ends to +5V and ground
 * wiper to LCD VO pin (pin 3)
 * 10K poterntiometer on pin A0

 created 21 Mar 2011
 by Tom Igoe
 modified 11 Nov 2013
 by Scott Fitzgerald
 modified 7 Nov 2016
 by Arturo Guadalupi

 Based on Adafruit's example at
 https://github.com/adafruit/SPI_VFD/blob/master/examples/createChar/createChar.pde

 This example code is in the public domain.
 http://www.arduino.cc/en/Tutorial/LiquidCrystalCustomCharacter

 Also useful:
 http://icontexto.com/charactercreator/

CustomCharacter.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/LCD_pcd8544]

pcd8544 Graphics Test

  GraphicsTest.pde
   
  Universal 8bit Graphics Library, https://github.com/olikraus/u8glib/
  
  Copyright (c) 2012, olikraus@gmail.com
  All rights reserved.
GraphicsTest.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/LCD_pcd8544_test]

pcd8544 Test


This is an example sketch for our Monochrome Nokia 5110 LCD Displays

  Pick one up today in the adafruit shop!
  ------> http://www.adafruit.com/products/338

These displays use SPI to communicate, 4 or 5 pins are required to
interface

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.
BSD license, check license.txt for more information
All text above, and the splash screen must be included in any redistribution


Original Github

pcdtest.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/LCD_pcf8833]

pcf8833 Graphics Test

  GraphicsTest.ino
  
  Generate some example graphics

  Universal uC Color Graphics Library
  
  Copyright (c) 2014, olikraus@gmail.com
  All rights reserved.

GraphicsTest.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/lcd_ssd1306_i2c]

library lcdgfx example: ssd1306_demo

/**
 *   Attiny85 PINS (i2c)
 *             ____
 *   RESET   -|_|  |- 3V
 *   SCL (3) -|    |- (2)
 *   SDA (4) -|    |- (1)
 *   GND     -|____|- (0)
 *
 *   Attiny SPI PINS:     connect LCD to D4 (D/C), GND (CS), D3 (RES), D1(DIN), D2(CLK)
 *
 *   Nano/Atmega328 PINS: connect LCD to A4/A5 (i2c)
 *   ESP8266: GPIO4(SDA) / GPIO5( SCL )
 *   STM32: B7(SDA), B6(SCL)
 */
ssd1306_demo.ino

Download (pzw)

[Arduino_Uno/atmega328p/lcd_ssd1306]

library lcdgfx example: ssd1306_demo

/**
 *   Attiny85 PINS (i2c)
 *             ____
 *   RESET   -|_|  |- 3V
 *   SCL (3) -|    |- (2)
 *   SDA (4) -|    |- (1)
 *   GND     -|____|- (0)
 *
 *   Attiny SPI PINS:     connect LCD to D4 (D/C), GND (CS), D3 (RES), D1(DIN), D2(CLK)
 *
 *   Nano/Atmega328 PINS: connect LCD to A4/A5 (i2c)
 *   ESP8266: GPIO4(SDA) / GPIO5( SCL )
 *   STM32: B7(SDA), B6(SCL)
 */
ssd1306_demo.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/LED_matrix_MAX72xx]

LED matrix MAX7211

   matriz_led.ino
  
   Exemplo PONG
   Livro Arduino Básico de Michael McRoberts

matriz_led.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/LED_matrix_scroll]

LED matrix MAX7211 scroll

   Ticker.ino
  
   Max72xxPanel library example

Ticker.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/lode_runner]

Library lcdgfx example: lode runner

/*
 *   Attiny85 PINS
 *             ____
 *   RESET   -|_|  |- 3V
 *   SCL (3) -|    |- (2)
 *   SDA (4) -|    |- (1) - BUZZER
 *   GND     -|____|- (0) - BUTTONS module
 *
 *   Atmega328 PINS with i2c SSD1306 to A4/A5, BUZZER on D8,
 *   Z-keypad ADC module on A0 pin.
 *   If you want to use GPIO keys, uncomment USE_GPIO_BUTTONS below
 *
 *   Atmega328 PINS with spi Nokia 5110 LCD:
 *   LCD RST to D3
 *   LCD CES to D4
 *   LCD DC to  D5
 *   LCD DIN to D11
 *   LCD CLK to D13
 *   LCD BL to  VCC
 */


Play using gamepad (analogic):
Up: B button (mapped as computer keyboard "i" key)
Right: A button (mapped as computer keyboard "l" key)
Left: D button (mapped as computer keyboard "j" key)
Down: C button (mapped as computer keyboard "k" key)

lode_runner.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/Oscilloscope]

Arduino Uno 3V Oscilloscope

This is my version of the Arduino oscilloscope code.  This file is strictly the display code for 
one analog channel.  It will soon be merged into my data logger project.

This is shared so others may incorporate the display code into their projects.  It has been modified to 
play nice with the Adafruit 5110 LCD library.

This is a work in progress but hopefully it will help someone else by providing
a base to start and work from.

Please check out my Youtube videos here and consider a thumbs up if this helped you!
Youtube : http://www.youtube.com/mkmeorg

Full Arduino Tutorial Playlist here: https://www.youtube.com/playlist?list=PLxyM2a_cfnzjXms2WRO9OdAr-_7K-Ve2Z

Original code comment text:
###########################################################
  Title:       Arduino Uno 3V Oscilloscope
  Purpose:     Use a Nokia 5110 LCD screen with the arduino
  Created by:  Brian O'Dell from the Fileark Arduino Oscilloscope.
  Note:        Please reuse, repurpose, and redistribute this code.
  Note:        This code uses the Adafruit PDC8544 LCD library  
###########################################################
https://github.com/Megamemnon/Arduino-Oscilloscope/blob/master/Uno3VOScope.ino
oscilloscope.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/Piano]

Arduino Piano

Arduino Tutorial Mini Piano

Visit the Channel for more interesting projects

https://www.youtube.com/channel/UCks-9JSnVb22dlqtMgPjrlg
piano.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/rc_receiver]

library rc-switch example: ReceiveDemo Simple

/*
  Simple example for receiving
  
  https://github.com/sui77/rc-switch/
*/


Press the play button on VCD play part to send the recorded code to microcontroller input.
ReceiveDemo_Simple.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/sdformatter]

Sd Formatter

/*
 * This program will format SD/SDHC/SDXC cards.
 * Warning all data will be deleted!
 *
 * This program attempts to match the format
 * generated by SDFormatter available here:
 *
 * http://www.sdcard.org/consumers/formatter/
 *
 * For very small cards this program uses FAT16
 * and the above SDFormatter uses FAT12.
 */


Click on sdcard connector to change sdcard file image.
SdFormatter.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/Serial_LCD]

Serial LCD LiquidCrystal_I2C

LiquidCrystal_I2C CustomChars example
//YWROBOT
//Compatible with the Arduino IDE 1.0
//Library version:1.1
CustomChars.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/servo_Knob]

Controlling a servo position using a potentiometer (variable resistor)

 Controlling a servo position using a potentiometer (variable resistor)
 by Michal Rinott 

 modified on 8 Nov 2013
 by Scott Fitzgerald
 http://www.arduino.cc/en/Tutorial/Knob
Knob.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/softserial]

library SoftwareSerial example: SoftwareSerial

  Software serial multple serial test
 Receives from the hardware serial, sends to software serial.
 Receives from software serial, sends to hardware serial.
 The circuit:
 * RX is digital pin 7 (connect to TX of other device)
 * TX is digital pin 8 (connect to RX of other device)
 created back in the mists of time
 modified 25 May 2012
 by Tom Igoe
 based on Mikal Hart's example
 This example code is in the public domain.
SoftwareSerialExample.ino

Download (pzw)

[Arduino_Uno/atmega328p/srtank_test]

Serial remote tank simple test

Open the Serial remote tank in tools menu and connect the serial.

To use the serial port, first configure the com0com or tty0tty as 
described in the help and open the serial terminal (cutecom).
srtank_test.ino

Download (pzw)

[Arduino_Uno/atmega328p/stepper_onerevolution]

Stepper Motor Control - one revolution

 This program drives a unipolar or bipolar stepper motor.
 The motor is attached to digital pins 8 - 11 of the Arduino.

 The motor should revolve one revolution in one direction, then
 one revolution in the other direction.


 Created 11 Mar. 2007
 Modified 30 Nov. 2009
 by Tom Igoe
stepper_oneRevolution.ino

Download (pzw)

View Online


[Arduino_Uno/atmega328p/tictactoe]

Arduino Touch Tic-Tac-Toe Game

   //////////////////////////////////////////////
  //     2.8" TOUCH SCREEN TIC TAC TOE        //
 //                                          //
//           http://www.educ8s.tv           //
/////////////////////////////////////////////


Arduino Touch Tic-Tac-Toe Game project

Download (pzw)

View Online


[Arduino_Uno/atmega328p/udpntpclient]

library Ethernet example: UdpNtpClient

 Udp NTP Client
 Get the time from a Network Time Protocol (NTP) time server
 Demonstrates use of UDP sendPacket and ReceivePacket
 For more on NTP time servers and the messages needed to communicate with them,
 see http://en.wikipedia.org/wiki/Network_Time_Protocol
 created 4 Sep 2010
 by Michael Margolis
 modified 9 Apr 2012
 by Tom Igoe
 modified 02 Sept 2015
 by Arturo Guadalupi
 This code is in the public domain.
UdpNtpClient.ino

Download (pzw)

[Arduino_Uno/atmega328p/ultrasonic]

Ultrasonic range finder

https://how2electronics.com/arduino-ultrasonic-range-finder-hc-sr04-oled-display/

ultrasonic.ino

Download (pzw)

[Arduino_Uno/atmega328p/URTouch_ButtonTest]

URTouch Library - ButtonTest

// URTouch_ButtonTest 
// Copyright (C)2015 Rinky-Dink Electronics, Henning Karlsen. All right reserved
// web: http://www.RinkyDinkElectronics.com/
//
// This program is a quick demo of how create and use buttons.
//
// This program requires the UTFT library.
//
// It is assumed that the display module is connected to an
// appropriate shield or that you know how to change the pin 
// numbers in the setup.
//


Library: URTouch

Download (pzw)

View Online


[Arduino_Uno/atmega328p/URTouch_QuickPaint]

URTouch Library - QuickPaint

// URTouch_QuickPaint 
// Copyright (C)2015 Rinky-Dink Electronics, Henning Karlsen. All right reserved
// web: http://www.RinkyDinkElectronics.com/
//
// This program is a quick demo of how to use the library.
//
// This program requires the UTFT library and a display
// module with at least 320x240 pixels resolution.
//
// It is assumed that the display module is connected to an
// appropriate shield or that you know how to change the pin 
// numbers in the setup.
//


Library: URTouch

Download (pzw)

View Online


[Arduino_Uno/atmega328p/webclientrepeating]

library Ethernet example: WebClientRepeating

  Repeating Web client
 This sketch connects to a a web server and makes a request
 using a Wiznet Ethernet shield. You can use the Arduino Ethernet shield, or
 the Adafruit Ethernet shield, either one will work, as long as it's got
 a Wiznet Ethernet module on board.
 This example uses DNS, by assigning the Ethernet client with a MAC address,
 IP address, and DNS address.
 Circuit:
 * Ethernet shield attached to pins 10, 11, 12, 13
 created 19 Apr 2012
 by Tom Igoe
 modified 21 Jan 2014
 by Federico Vanzati
 http://www.arduino.cc/en/Tutorial/WebClientRepeating
 This code is in the public domain.
WebClientRepeating.ino

Download (pzw)

[Arduino_Uno/atmega328p/webserver]

library Ethernet example: WebServer

  Web Server
 A simple web server that shows the value of the analog input pins.
 using an Arduino Wiznet Ethernet shield.
 Circuit:
 * Ethernet shield attached to pins 10, 11, 12, 13
 * Analog inputs attached to pins A0 through A5 (optional)
 created 18 Dec 2009
 by David A. Mellis
 modified 9 Apr 2012
 by Tom Igoe
 modified 02 Sept 2015
 by Arturo Guadalupi


Open a browser on address http://127.0.0.1:2080
WebServer.ino

Download (pzw)

[Arduino_Uno/atmega328p/wires]

Jumper Wires example

This examples show the use of jumper wires to direct connect parts. The microcontroller is not used on example.

Download (pzw)

View Online


[Blue_Pill/stm32f103c8t6/DS1621]

DS1621 I2C

Simple arduino reader for the DS1621 I2C temperature sensor

Source code

Download (pzw)

[Blue_Pill/stm32f103c8t6/GPIO]

STM32 GPIO Example

Original Link: https://blog.avislab.com/stm32-gpio/

Source code

Download (pzw)

[Blue_Pill/stm32f103c8t6/Nokia5110]

STM32 Nokia 5110 LCD Example

Original Link: https://blog.avislab.com/category/stm32/

Source code

Download (pzw)

[Blue_Pill/stm32f103c8t6/StepMotor]

STM32 Step Motor Example

Original Link: https://blog.avislab.com/category/stm32/

Source code

Download (pzw)

[Blue_Pill/stm32f103c8t6/SysTick]

STM32 SysTick Example

Original Link: https://blog.avislab.com/stm32-systick/

Source code

Download (pzw)

[Breadboard/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


[Breadboard/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


[Breadboard/PIC16F1619/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[Breadboard/PIC16F1788/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[Breadboard/PIC16F1789/TempHum]

Temperature and humidity meter


SHT3X Temperature sensor/humidity measure using LCD.

MPLABX Temp_Hum project


Download (pzw)

View Online


[Breadboard/PIC16F18324/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[Breadboard/PIC16F18855/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[Breadboard/PIC16F1939/LDRLuxMeter]

LDR Lux Meter


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

MPLABX LDRLUX project


Download (pzw)

View Online


[Breadboard/PIC16F628A/7slatch]

Simple example for testing 7 segment display and octal latchs.

Simple hexadecimal counter
XC8 main.c


Download (pzw)

View Online


[Breadboard/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

To use the serial port, configure com0com or
tty0tty as described in the help and open the serial terminal (cutecom).
MPLABX test_b0_2 project


Download (pzw)

View Online


[Breadboard/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


[Breadboard/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


[Breadboard/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

To use the serial port, previously configure com0com or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).
MPLABX test_b0 project


Download (pzw)

View Online


[Breadboard/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


[Breadboard/PIC16F877A/DS1307]

DS1307 RTC

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


Download (pzw)

View Online


[Breadboard/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


[Breadboard/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

To use the serial port, previously configure com0com or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).
MPLABX test_b0 project


Download (pzw)

View Online


[Breadboard/PIC16F886/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[Breadboard/PIC16F887/ADCext]

External ADC reference


FM50 Temperature sensor measure using external ADC reference.

MPLABX AdcExtRef project


Download (pzw)

View Online


[Breadboard/PIC18F26K80/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[Breadboard/PIC18F27K40/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[Breadboard/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


[Breadboard/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

To use the serial port, previously configure com0com or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).
MPLABX test_b0 project


Download (pzw)

View Online


[Breadboard/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


[Breadboard/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

To use the serial port, previously configure com0com or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).
MPLABX test_b0 project


Download (pzw)

View Online


[Breadboard/PIC18F4580/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[Breadboard/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


[Breadboard/PIC18F4620/DS1307]

DS1307 RTC

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


Download (pzw)

View Online


[Breadboard/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

To use the serial port, previously configure com0com or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).
MPLABX test_b0 project


Download (pzw)

View Online


[Breadboard/PIC18F46J50/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[Breadboard/PIC18F47K40/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[Breadboard/PIC18F67J94/blinkRGB]

Blink RGB LED


Simple code example to blink one RGB LED.

MPLABX blinkRGB project


Download (pzw)

View Online


[ESP32_C3_DevKitC_02/ESP32-C3/idf_blink]

Espressif ESP32-C3 Blink Example

/* Blink Example
   This example code is in the Public Domain (or CC0 licensed, at your option.)
   Unless required by applicable law or agreed to in writing, this
   software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
   CONDITIONS OF ANY KIND, either express or implied.
*/

Build instructions and Source code

Download (pzw)

[ESP32_DevKitC/ESP32/AdcMeasuring]

ESP32 ADC with Arduino IDE

Measuring voltage example

Source code

Download (pzw)

[ESP32_DevKitC/ESP32/Bmp280Test]

BMP280 Pressure sensor

  This is a library for the BMP280 humidity, temperature & pressure sensor
  Designed specifically to work with the Adafruit BMP280 Breakout
  ----> http://www.adafruit.com/products/2651
  These sensors use I2C or SPI to communicate, 2 or 4 pins are required
  to interface.
  Adafruit invests time and resources providing this open source code,
  please support Adafruit andopen-source hardware by purchasing products
  from Adafruit!
  Written by Limor Fried & Kevin Townsend for Adafruit Industries.
  BSD license, all text above must be included in any redistribution

bmp280test.ino

Download (pzw)

[ESP32_DevKitC/ESP32/idf_blink]

Espressif ESP32 Blink Example

/* Blink Example
   This example code is in the Public Domain (or CC0 licensed, at your option.)
   Unless required by applicable law or agreed to in writing, this
   software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
   CONDITIONS OF ANY KIND, either express or implied.
*/

Build instructions and Source code

Download (pzw)

[ESP32_DevKitC/ESP32/micropython]

ESP32 Micropython

Original Link: https://micropython.org/
Before use this example it is necessary to configure a serial port emulator as described in the documentation.

You can load the test code below using a serial terminal or an editor like Thonny or Mu.
import machine
import time
led = machine.Pin(2, machine.Pin.OUT)
while True:
	led.value(1)
	time.sleep(1)
	led.value(0)
	time.sleep(1)



Download (pzw)

[ESP32_DevKitC/ESP32/NTP_client]

NTP client with PCD8544 LCD

   PCD8544 Library Modified for Esp32 Nokia 5110 LCD Interfacing.
   Sample code for Displaying time and Date from NTP servers.
Original code

Source code

Download (pzw)

[ESP32_DevKitC/ESP32/NuttX_led]

Blink LED no ESP32 com o RTOS NuttX


Exemplo simples de como piscar um LED utilizando o RTOS Nuttx no ESP32 escrito por Sara Monteiro.

Antes de utilizar esse exemplo é necessário configurar um emulador de porta serial como descrito na documentação.
Conecte um terminal serial, acesse o NSH (NuttShell) e digite o comando "leds" para iniciar.
Artigo Original no site Embarcados

Download (pzw)

[ESP32_DevKitC/ESP32/SimpleWifiServer]

WiFi Web Server LED Blink


 A simple web server that lets you blink an LED via the web.
 This sketch will print the IP address of your WiFi Shield (once connected)
 to the Serial monitor. From there, you can open that address in a web browser
 to turn on and off the LED on pin 5.

 If the IP address of your shield is yourAddress:
 http://yourAddress/H turns the LED on
 http://yourAddress/L turns it off

 This example is written for a network using WPA encryption. For
 WEP or WPA, change the Wifi.begin() call accordingly.

 Circuit:
 * WiFi shield attached
 * LED attached to pin 5

 created for arduino 25 Nov 2012
 by Tom Igoe

ported for sparkfun esp32 
31.01.2017 by Jan Hendrik Berlin

On PICSimLab qemu-esp32 simulator the Web server address is mapped in http://localhost:16555
Source code

Download (pzw)

[ESP32_DevKitC/ESP32/SpiMaster]

ESP32 SPI Master

Learn how to use the ESP32 SPI peripheral with the ESP-IDF in 
this article. SPI instances and the APIs needed to interact 
with them will be covered. You will create a project that 
uses SPI to operate a MAX7219 module with an 8×8 LED matrix.

Source code

Download (pzw)

[ESP32_DevKitC/ESP32/UTFT_demo]

Library TFT_eSPI - UTFT Demo 320x240

  Demo based on:
  UTFT_Demo_320x240 by Henning Karlsen
  web: http://www.henningkarlsen.com/electronics

Source code

Download (pzw)

[ESP32_DevKitC/ESP32/zephyr_esp32_led]

Blink LED no ESP32 e Zephyr RTOS


Exemplo simples de como piscar um LED utilizando o RTOS Zephyr no ESP32 escrito por Glauber Ferreira.


Artigo Original no site Embarcados

Download (pzw)

[Franzininho_DIY/attiny85/Buzzer]

Franzininho DIY - AVR LibC: Instrumento musical com Buzzer



Exemplos AVR Libc – Franzininho DIY do site Embarcados

Link para o artigo e código: Instrumento musical com Buzzer

Download (pzw)

View Online


[Franzininho_DIY/attiny85/Contador_v3]

Franzininho DIY - Contador de pulsos externos



Exemplos AVR Libc – Franzininho DIY do site Embarcados

Link para o artigo e código: Contador de pulsos externos

Download (pzw)

View Online


[Franzininho_DIY/attiny85/EntradaDigital]

Franzininho DIY - AVR LibC: Entrada Digital



Exemplos AVR Libc – Franzininho DIY do site Embarcados

Link para o artigo e código: Entrada Digital

Download (pzw)

View Online


[Franzininho_DIY/attiny85/HelloWorld]

Franzininho DIY - AVR LibC: Hello, World! Linguagem C



Exemplos AVR Libc – Franzininho DIY do site Embarcados

Link para o artigo e código: Hello, World! Linguagem C

Download (pzw)

View Online


[Franzininho_DIY/attiny85/SaidaDigital]

Franzininho DIY - AVR LibC: Saídas Digitais



Exemplos AVR Libc – Franzininho DIY do site Embarcados

Link para o artigo e código: Saídas Digitais

Download (pzw)

View Online


[Franzininho_DIY/attiny85/Termometro]

Franzininho DIY: Termômetro



Franzininho: Termômetro exemplo do siteDQSoft


Neste projeto vamos usar o Franzininho para apresentar a temperatura atual em um display LCD.

Link para o artigo e código: Termômetro

Download (pzw)

View Online


[Franzininho_DIY/attiny85/timer0_ovf]

Franzininho DIY - AVR LibC: Timer0



Exemplos AVR Libc – Franzininho DIY Documentação Franzininho

Link para o texto e código: Franzininho DIY - AVR LibC: Timer0

Download (pzw)

View Online


[Franzininho_DIY/attiny85/Tiny85_Temp_LCD_RTC]

Example Tiny85 Temp LCD RTC of TinyWireM library



ATtiny85 as an I2C Master   Ex3        BroHogan                         1/22/11
I2C master reading DS1621 temperature sensor & DS1307 RTC. Display to I2C GPIO LED.
SETUP:
ATtiny Pin 1 = (RESET) N/U                      ATtiny Pin 2 = (D3) N/U
ATtiny Pin 3 = (D4) to LED1                     ATtiny Pin 4 = GND
ATtiny Pin 5 = SDA on all devices               ATtiny Pin 6 = (D1) to LED2
ATtiny Pin 7 = SCK on all devices               ATtiny Pin 8 = VCC (2.7-5.5V)
NOTE! - It's very important to use pullups on the SDA & SCL lines!
DS1621 wired per data sheet. This ex assumes A0-A2 are set LOW for an addeess of 0x48
DS1307 wired per data sheet. This ex assumes A0-A2 are set LOW for an addeess of 0x68
PCA8574A GPIO was used wired per instructions in "info" folder in the LiquidCrystal_I2C lib.
This ex assumes A0-A2 are set HIGH for an addeess of 0x3F
LiquidCrystal_I2C lib was modified for ATtiny - on Playground with TinyWireM lib.
TinyWireM USAGE & CREDITS: - see TinyWireM.h


Link to source code: Tiny85_Temp_LCD_RTC.pde

Download (pzw)

View Online


[gpboard/pic16f628a/test_b0]

Exemplo simples para teste dos recursos da placa.

1- Testa display de 7 segmentos;
2- Pisca lâmpada em RA0 (Neste momento trocar posição do jumper para "LED");
3- Testa LEDs vermelhos ligados ao PORTB;
4- Testa os botões;
5- Testa os LEDs verdes ligados ao PORTA.
MPLABX test_b1 project

Others compilers test_b1 project

Download (pzw)

View Online


[K16F/PIC16F628A/LCD_pcf8833]

Test pcf8833 LCD display

LCD pcf8833 test code 
MPLABX pcf8833 project

Download (pzw)

View Online


[K16F/PIC16F628A/test_b2]

Simple example for testing board features.

1- Tests LCD display;
2- Test the red LEDs connected to the PORTA.
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

To use the serial port, configure com0com or
tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).
MPLABX test_b2 project

Others compilers test_b2 project

Download (pzw)

View Online


[K16F/PIC16F648A/test_b2]

Simple example for testing board features.

1- Tests LCD display;
2- Test the red LEDs connected to the PORTA.
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

To use the serial port, configure com0com or
tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).
MPLABX test_b2 project

Others compilers test_b2 project

Download (pzw)

View Online


[K16F/PIC16F84A/test_b2]

Simple example for testing board features.

1- Tests LCD display;
2- Test the red LEDs connected to the PORTA.
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

To use the serial port, configure com0com or
tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).
MPLABX test_b2 project

Others compilers test_b2 project

Download (pzw)

View Online


[McLab1/PIC16F628A/desbravando_o_pic_dimmer]

DESBRAVANDO O PIC - Dimmer

Dimmer
dimmer.asm

Download (pzw)

View Online


[McLab1/PIC16F628A/desbravando_o_pic_ex1]

DESBRAVANDO O PIC - ex1.asm

SISTEMA MUITO SIMPLES PARA REPRESENTAR O ESTADO DE UM BOTÃO ATRAVÉS DE UM LED.
ex1.asm

Download (pzw)

View Online


[McLab1/PIC16F628A/desbravando_o_pic_ex2]

DESBRAVANDO O PIC - ex2.asm

SISTEMA MUITO SIMPLES PARA INCREMENTAR ATÉ UM DETERMINADO VALOR (MAX) DE DEPOIS DECREMENTAR ATÉ OUTRO (MIN).
ex2.asm

Download (pzw)

View Online


[McLab1/PIC16F628A/desbravando_o_pic_ex3]

DESBRAVANDO O PIC - ex3.asm

PISCA-PISCA VARIÁVEL PARA DEMONSTRAR A IMPLEMENTAÇÃO DE DELAYS E A INVERSÃO DE PORTAS.
ex3.asm

Download (pzw)

View Online


[McLab1/PIC16F628A/desbravando_o_pic_ex4]

DESBRAVANDO O PIC - ex4.asm

CONTADOR QUE UTILIZA DOIS BOTÕES PARA INCREMENTAR E DECREMENTAR O VALOR CONTROLADO PELA VARIÁVEL "CONTADOR". 
ESTA VARIÁVEL ESTÁ LIMITADA PELAS CONSTANTES "MIN" E "MAX". O VALOR DO CONTADOR É MOSTRADO NO DISPLAY.
ex4.asm

Download (pzw)

View Online


[McLab1/PIC16F628A/desbravando_o_pic_ex5]

DESBRAVANDO O PIC - ex5.asm

TIMER DECRESCENTE EM SEGUNDOS. O VALOR INICIAL É DETERMINADO   
PELA CONSTANTE V_INICIO E PODE ESTAR ENTRE 1 E 9 SEGUNDOS.     
O BOTÃO 1 DISPARA O TIMER, MOSTRANDO O TEMPO RESTANTE NO       
DISPLAY. O BOTÃO 2 PARALIZA O TIMER. O LED É UTILIZADO PARA    
INDICAR O ESTADO ATUAL DO TIMER: ACESO=RODANDO E APAGADO=PARADO 
ex5.asm

Download (pzw)

View Online


[McLab1/PIC16F628A/desbravando_o_pic_ex6]

DESBRAVANDO O PIC - ex6.asm

CONTADOR QUE UTILIZA DOIS BOTÕES PARA INCREMENTAR E DECRE-     
MENTAR O VALOR CONTROLADO PELA VARIÁVEL "CONTADOR". ESTA       
VARIÁVEL ESTÁ LIMITADA PELAS CONSTANTES "MIN" E "MAX".         
O VALOR DO CONTADOR É MOSTRADO NO DISPLAY E ARMAZENADO NA      
EEPROM PARA NÃO SER PERDIDO MESMO NO CASO DE RESET. 
ex6.asm

Download (pzw)

View Online


[McLab1/PIC16F628A/test_b1]

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_b1 project

Others compilers test_b1 project

Download (pzw)

View Online


[McLab1/PIC16F648A/test_b1]

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_b1 project

Others compilers test_b1 project

Download (pzw)

View Online


[McLab1/PIC16F84A/test_b1]

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_b1 project

Others compilers test_b1 project

Download (pzw)

View Online


[McLab2/PIC16F777/test_b3]

Simple example for testing board features.

1- Tests LCD display;
2- Tests 7-segment displays;
2- Test the red LEDs;
3- Tests push buttons;
4- Tests internal eeprom;
5- Tests external eeprom 24C04;
6- Test serial sending and receiving data;
7- Tests AD converter connected to the potentiometer;
8- Tests temperature measurement;
9- Turn on the Heater;
10- Turn on the fan and measure the speed.


To use the serial port, configure com0com in advance
or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).

MPLABX test_b3 project

Others compilers test_b3 project

Download (pzw)

View Online


[McLab2/PIC16F877A/conectando_o_pic_01]

CONECTANDO O PIC - RECURSOS AVANÇADOS

;  ESTE SOFTWARE ESTÁ PREPARADO PARA LER QUATRO BOTÕES E TOCAR O BUZZER COM
;  DURAÇÃO VARIÁVEL CONFORME A TECLA PRESSIONADA, ALÉM DE ACENDER O LED
;  INDICANDO A ÚLTIMA TECLA PRESSIONADA.
asm2-e01.asm

Download (pzw)

View Online


[McLab2/PIC16F877A/conectando_o_pic_02]

CONECTANDO O PIC - RECURSOS AVANÇADOS

;  ESTE EXEMPLO FOI PREPARADO PARA DEMONSTRAR O FUNCIONAMENTO DO TIMER DE 
;  16 BITS DO PIC (TMR1) E DA VARREDURA DE DISPLAYS.
;  CONSISTE NUM TEMPORIZADOR DE SEGUNDOS. DOIS BOTÕES FORAM UTILIZADOS PARA
;  PROGRAMAR O TEMPO DA CONTAGEM. UM OUTRO BOTÃO FOI UTILIZADO PARA DISPARAR
;  O CONTADOR. O TEMPORIZADOR CONSEGUE CONTAR ATÉ 9999 SEGUNDOS, DE FORMA QUE
;  OS 4 DISPLAYS DE 7 SEGMENTOS FORAM NECESSÁRIOS. A CONTAGEM É REGRESSIVA.
;  UM LED INDICA QUE O TEMPORIZADOR ESTÁ OPERANDO. QUANDO O SISTEMA CHEGA
;  A 0000 (ZERO) O LED É DESLIGADO AUTOMATICAMENTE.
asm2-e02.asm

Download (pzw)

View Online


[McLab2/PIC16F877A/conectando_o_pic_03]

CONECTANDO O PIC - RECURSOS AVANÇADOS

;  ESTE EXEMPLO FOI ELABORADO PARA EXPLICAR O FUNCIONAMENTO DO MÓDULO DE LCD.
;  FOI CRIADA UMA ROTINA PARA ESCREVER COMANDOS OU CACACTRES NO LCD. EXISTE
;  TAMBÉM UMA ROTINA DE INICIALIZAÇÃO NECESSÁRIA PARA A CORRETA CONFIGURAÇÃO
;  DO LCD. OS BOTÕES CONTINUAM SENDO MONITORADOS. UMA MENSAGEM É ESCRITA
;  NO LCD PARA CADA UM DOS BOTÕES, QUANDO O MESMO É PRESSIONADO.
asm2-e03.asm

Download (pzw)

View Online


[McLab2/PIC16F877A/conectando_o_pic_04]

CONECTANDO O PIC - RECURSOS AVANÇADOS

;  ESTE EXEMPLO FOI ELABORADO PARA EXPLICAR O FUNCIONAMENTO DO MÓDULO DE
;  CONVERSÃO ANALÓGICO DIGITAL INTERNO DO PIC. É CONVERTIDO O VALOR ANALÓGICO
;  PRESENTE NO PINO RA2 DO MICROCONTROLADOR, SENDO QUE ESTE VALOR PODE SER
;  ALTERADO ATRAVÉS DO POTENCIÔMETRO P2 DA PLACA MCLAB2. O VALOR DA CONVERSÃO
;  A/D É AJUSTADO NUMA ESCALA DE 0 À 5V E MOSTRADO NO LCD.
;  FORAM UTILIZADAS ROTINAS DE MULTIPLICAÇÃO DE 8x8 E DIVISÃO DE 16x16. ESTAS
;  ROTINAS FORAM RETIRADAS DE APLICATION NOTES DA PRÓPRIA MICROCHIP.
asm2-e04.asm

Download (pzw)

View Online


[McLab2/PIC16F877A/conectando_o_pic_05]

CONECTANDO O PIC - RECURSOS AVANÇADOS

;  ESTE EXEMPLO FOI ELABORADO PARA EXPLICAR O FUNCIONAMENTO DE UM TIPO DE
;  CONVERSOR A/D FUNDAMENTADO NO TEMPO DE CARGA DE UM CAPACITOR. O TEMPO DE
;  CARGA DO CAPACITOR É MOSTRADO NO LCD E É INVERSAMENTE PROPORCIONAL À
;  TENSÃO APLICADA ATRVÉS DO POTENCIÔMETRO P2.
asm2-e05.asm

Download (pzw)

View Online


[McLab2/PIC16F877A/conectando_o_pic_06]

CONECTANDO O PIC - RECURSOS AVANÇADOS

;  ESTE EXEMPLO FOI ELABORADO PARA EXPLICAR O FUNCIONAMENTO DO MÓDULO PWM
;  DO PIC16F877. ELE MONITORA OS QUATRO BOTÕES E CONFORME O BOTÃO SELECIONADO
;  APLICA UM VALOR DIFERENTE NO PWM, FAZENDO ASSIM UM CONTROLE SOBRE A
;  VELOCIDADE DO VENTILADOR. NO LCD É MOSTRADO O VALOR ATUAL DO DUTY CYCLE.
asm2-e06.asm

Download (pzw)

View Online


[McLab2/PIC16F877A/conectando_o_pic_07]

CONECTANDO O PIC - RECURSOS AVANÇADOS

;  ESTE EXEMPLO FOI ELABORADO PARA EXPLICAR O FUNCIONAMENTO DA LEITURA/ESCRITA
;  TANTO NA MEMÓRIA DE DADOS QUANTO NA MEMÓRIA DE PROGRAMA.
asm2-e07.asm

Download (pzw)

View Online


[McLab2/PIC16F877A/conectando_o_pic_08]

CONECTANDO O PIC - RECURSOS AVANÇADOS

;  ESTE EXEMPLO FOI ELABORADO PARA EXPLICAR O FUNCIONAMENTO DA LEITURA/ESCRITA
;  TANTO NA MEMÓRIA DE DADOS QUANTO NA MEMÓRIA DE PROGRAMA.
asm2-e08.asm

Download (pzw)

View Online


[McLab2/PIC16F877A/conectando_o_pic_09]

CONECTANDO O PIC - RECURSOS AVANÇADOS

;  ESTE EXEMPLO FOI ELABORADO PARA EXPLICAR O FUNCIONAMENTO DA USART DO PIC.
;  O SOFTWARE CONVERTE O CANAL 1 DO CONVERSOR A/D (POTENCIÔMETRO P2) E MOSTRA
;  NO DISPLAY O VALOR CONVERTIDO EM DECIMAL E HAXADECIMAL.
;  ALÉM DE MOSTRAR O VALOR NO DISPLAY, O SOFTWARE TRANSMITE PELA USART O VALOR
;  DA CONVERSÃO. OS VALORES RECEBIDOS PELA USART TAMBÉM SÃO MOSTRADOS NO LCD
;  COMO CARACTERES ASCII.
asm2-e09.asm

Download (pzw)

View Online


[McLab2/PIC16F877A/conectando_o_pic_10]

CONECTANDO O PIC - RECURSOS AVANÇADOS

;  ESTE EXEMPLO FOI ELABORADO PARA EXPLICAR O FUNCIONAMENTO DO TMR1 COMO
;  CONTADOR, UTILIZADO NA PLACA MCLAB2 PARA CONTAR AS ROTAÇÕES DO VENTILADOR.
;  O SOFTWARE CONVERTE O CANAL 0 DO CONVERSOR A/D (SENSOR DE TEMPERATURA).
;  DOIS PWMs FORAM UTILIZADOS, UM PARA MODULAR A RESISTÊNCIA DE AQUECIMENTO
;  E OUTRO PARA A VELOCIDADE DO VENTILADOR.
;  COM AS TECLAS S1 E S2 PODE-SE VARIAR O PWM DO AQUECEDOR E COM AS TECLAS
;  S3 E S4 O PWM DO VENTILADOR.
;  NO LCD SÃO MOSTRADOS OS VALORES DO PWM DO AQUECEDOR, O NÚMERO DE ROTAÇÕES
;  POR SEGUNDO DO VENTILADOR E A TEMPERATURA DO DIODO JÁ CONVERTIDA EM GRAUS
;  CELSIUS. ALÉM DISSO, O VALOR ATUAL DA TEMPERATURA DO DIODO É TRANSMITIDO
;  PERIODICAMENTE ATRAVÉS DA USART.
asm2-e10.asm

Download (pzw)

View Online


[McLab2/PIC16F877A/Demo_Mclab2]

Demo_Mclab2_16F877A

Programa de teste da placa Mclab2 (somente arquivo binário .hex)

1- Testa display LCD;
2- Testa displays de 7 segmentos;
2- Testa os LEDs vermelhos;
3- Testa botões de pressão;
4- Testa eeprom interna;
5- Testa eeprom externa 24C04;
6- Testa porta serial envio;
7- Testa porta serial recebimento;
8- Testa conversor AD ligado ao potênciometro; 
9- Testa medição de temperatura;
10- Liga Aquecedor;
11 -Liga ventilador e mede a velocidade.


Para utilizar a porta serial configure previamente o com0com ou tty0tty segundo descrito na ajuda e abra o terminal serial (cutecom).


Download (pzw)

View Online


[McLab2/PIC16F877A/LCD_pcd8544]

Test pcd8544 LCD display

LCD pcd8544 display test 
MPLABX pcd8544 project

Download (pzw)

View Online


[McLab2/PIC16F877A/test_b3]

Simple example for testing board features.

1- Tests LCD display;
2- Tests 7-segment displays;
2- Test the red LEDs;
3- Tests push buttons;
4- Tests internal eeprom;
5- Tests external eeprom 24C04;
6- Test serial sending and receiving data;
7- Tests AD converter connected to the potentiometer;
8- Tests temperature measurement;
9- Turn on the Heater;
10- Turn on the fan and measure the speed.


To use the serial port, configure com0com in advance
or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).

MPLABX test_b3 project

Others compilers test_b3 project

Download (pzw)

View Online


[McLab2/PIC18F4520/test_b3]

Simple example for testing board features.

1- Tests LCD display;
2- Tests 7-segment displays;
2- Test the red LEDs;
3- Tests push buttons;
4- Tests internal eeprom;
5- Tests external eeprom 24C04;
6- Test serial sending and receiving data;
7- Tests AD converter connected to the potentiometer;
8- Tests temperature measurement;
9- Turn on the Heater;
10- Turn on the fan and measure the speed.


To use the serial port, configure com0com in advance
or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).

MPLABX test_b3 project

Others compilers test_b3 project

Download (pzw)

View Online


[McLab2/PIC18F452/test_b3]

Simple example for testing board features.

1- Tests LCD display;
2- Tests 7-segment displays;
2- Test the red LEDs;
3- Tests push buttons;
4- Tests internal eeprom;
5- Tests external eeprom 24C04;
6- Test serial sending and receiving data;
7- Tests AD converter connected to the potentiometer;
8- Tests temperature measurement;
9- Turn on the Heater;
10- Turn on the fan and measure the speed.


To use the serial port, configure com0com in advance
or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).

MPLABX test_b3 project

Others compilers test_b3 project

Download (pzw)

View Online


[McLab2/PIC18F4550/test_b3]

Simple example for testing board features.

1- Tests LCD display;
2- Tests 7-segment displays;
2- Test the red LEDs;
3- Tests push buttons;
4- Tests internal eeprom;
5- Tests external eeprom 24C04;
6- Test serial sending and receiving data;
7- Tests AD converter connected to the potentiometer;
8- Tests temperature measurement;
9- Turn on the Heater;
10- Turn on the fan and measure the speed.


To use the serial port, configure com0com in advance
or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).

MPLABX test_b3 project

Others compilers test_b3 project

Download (pzw)

View Online


[McLab2/PIC18F4620/test_b3]

Simple example for testing board features.

1- Tests LCD display;
2- Tests 7-segment displays;
2- Test the red LEDs;
3- Tests push buttons;
4- Tests internal eeprom;
5- Tests external eeprom 24C04;
6- Test serial sending and receiving data;
7- Tests AD converter connected to the potentiometer;
8- Tests temperature measurement;
9- Turn on the Heater;
10- Turn on the fan and measure the speed.


To use the serial port, configure com0com in advance
or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).

MPLABX test_b3 project

Others compilers test_b3 project

Download (pzw)

View Online


[PICGenios/PIC16F777/test_b4]

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

To use the serial port, previously configure com0com or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).
MPLABX test_b4 project

Others compilers test_b4 project

Download (pzw)

View Online


[PICGenios/PIC16F877A/test_b4]

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

To use the serial port, previously configure com0com or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).
MPLABX test_b4 project

Others compilers test_b4 project

Download (pzw)

View Online


[PICGenios/PIC18F4520/test_b4]

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

To use the serial port, previously configure com0com or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).
MPLABX test_b4 project

Others compilers test_b4 project

Download (pzw)

View Online


[PICGenios/PIC18F452/test_b4]

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

To use the serial port, previously configure com0com or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).
MPLABX test_b4 project

Others compilers test_b4 project

Download (pzw)

View Online


[PICGenios/PIC18F4550/espmsim_server]

Serial esp8266/espmsim TCP server

Open the esp8266 modem simulator in tools menu and connect the serial 
(or a real esp8266 connected in a real serial port).

To use the serial port, first configure the com0com or tty0tty as 
described in the help and open the serial terminal (cutecom).

When the server is loaded, open a browser in the address http://127.0.0.1:2000 

MPLABX esp_server project

Download (pzw)

[PICGenios/PIC18F4550/Parts_Demo]

Simple example for servomotor and stepper motor testing.

Servo motor connected in RB0 controlled by AN0 analog channel.
Stepper motor connected to RB7, RB6, RB5 and RB4.
MPLABX Parts_Demo project

Download (pzw)

View Online


[PICGenios/PIC18F4550/Serial_lcd]

Serial/LCD simple test.

Open the serial term and type lines with LF terminator.

To use the serial port, first configure the com0com or tty0tty as 
described in the help and open the serial terminal (cutecom).
MPLABX Serial_lcd project

Download (pzw)

View Online


[PICGenios/PIC18F4550/srtank_test]

Serial remote tank simple test

Open the Serial remote tank in tools menu and connect the serial.

To use the serial port, first configure the com0com or tty0tty as 
described in the help and open the serial terminal (cutecom).
MPLABX srtank_test project

Download (pzw)

[PICGenios/PIC18F4550/test_b4]

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

To use the serial port, previously configure com0com or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).
MPLABX test_b4 project

Others compilers test_b4 project

Download (pzw)

View Online


[PICGenios/PIC18F45K50/test_b4]

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

To use the serial port, previously configure com0com or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).
MPLABX test_b4 project

Others compilers test_b4 project

Download (pzw)

View Online


[PICGenios/PIC18F4620/test_b4]

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

To use the serial port, previously configure com0com or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).
MPLABX test_b4 project

Others compilers test_b4 project

Download (pzw)

View Online


[PQDB/PIC18F4520/pqdb_full_demo]

Example for testing all board features.

1- Potentiometer value is shown in 7 segment display;
2- LCD prints seconds value from main code counter and the DS1307;
3- Swiches values are printed on LCD when Pressed;
4- Switch 'S' turn on buzzer via PWM;
6- RGB led is flashin (pins are multiplexed with other componentes);
7- Serial port in Ecco mode (send what ir receive);

To use the serial port, previously configure com0com or tty0tty as described in the PICSimLab help and open the serial terminal (cutecom).
MPLABX full demo project


Download (pzw)

View Online


[Remote_TCP/Ripes/LCDSW]

LCD switches Ripes PICSimLab example



How to use this example:
- Load LCDSW.pzw on PICSimLab (experimental version)
- Open Ripes (experimental version) and connect the external bus device.
- Open the file lcdsw.c on Ripes, compile and run.

lcdsw.c source code file


Download (pzw)

[Remote_TCP/Ripes/LED_SW]

LED switches Ripes PICSimLab example



How to use this example:
- Load LED_SW.pzw on PICSimLab (experimental version)
- Open Ripes (experimental version) and connect the external bus device.
- Open the file led_sw.s on Ripes and run.

led_sw.s source code file


Download (pzw)

[STM32_H103/stm32f103rbt6/SysTick]

beckus stm32 p103 demos - SysTick example

Uses the Cortex NVIC system tick timer to flash the LED.

Source code

Download (pzw)

[uCboard/C51/Blink]

8051 SDCC led blink


// Blink LEDs : Using Delay Function
// compiled with: sdcc -mmcs51 blink.c -o blink.hex           
Source code

Download (pzw)

View Online


[uCboard/STM8S103/LCD]

STM8 SDCC LCD example

Original linkhttps://github.com/polprog/stm8-hd44780
/*
 * HD44780 LCD test/demo program for STM8
 * By Chris "polprog" Lasocki
 * 2018
 */       
Source code

Download (pzw)

View Online


[uCboard/Z80/LCD_vert_scroll]

Z80 LCD HD47780 vertical scroll


Original link http://www.dinceraydin.com/lcd/z80example.htm
;
; Program: v_scroll.asm
; programmer(s): Dincer Aydin (dinceraydin@altavista.net)
; function: vertical scroll effect
; The effect is the same as the one you can see at the entrance of my LCD pages:
; http://www.dinceraydin.com/lcd/z80example.htm
;
;
; This code requires a 2*16 LCD connected to a 8255 with base address of 00h
; routines sendcomA & sendcom & sendcharA & sendchar have been tested on 
; >> 2*16 Hitachi LCD with HD44780 chip 
; >> Samsung 1*16 LCD with a KS0062F00 chip
; >> 2*16 Epson LCD marked P300020400 SANTIS 1 ,and 
; >> noname 1*16 HD44780 based LCD.
; The Z80 was clocked at 2 MHz and 4,9152 MHz for each display.This was done 
; because the routines mentioned above take many t states and in most cases 
; that will be longer that the time a HD44780 will need to execute a command. 
;
; Connections:
; LCD data bus(pins #14-#7) connected to Port A of a 8255 with 00h base address
; LCD Enable pin(#6) connected to Port C bit #7
; LCD R/W pin(#5) connected to Port C bit #6
; LCD RS pin(#4) connected to Port C bit #5                 
Source code

Download (pzw)

View Online


[uCboard/Z80/LED_blink]

Z80 SDCC led blink


// Example of use of uCboard 8255
// compile with:  sdcc -mz80 led.c -o led.hex                
Source code

Download (pzw)

View Online


[X/PIC18F4550/Test_x]

Simple board X example

Simple example to use ADC ,switches and button inputs to control LEDs on outputs.
Based on board of tutorial Creating New Boards.

MPLABX board_x.X project


Download (pzw)

View Online