PUGAUGE - Low Power Display Processor: Unterschied zwischen den Versionen

Aus PUCONwiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
 
(9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
{{Image|/public/Projekte/PUGAUGE/Hardware/PUGAUGE_BBD-002.JPG|height=400px}}


The PUGAUGE is intended to be a base platform for devices to display Information in an environment where low power requirements are mandatory.
The PUGAUGE is intended to be a base platform for devices to display Information in an environment where low power requirements are mandatory.
Zeile 10: Zeile 11:
== Hardware ==
== Hardware ==


* 8-Character Segmented LCD 14-segment Display
{{PUGAUGE Hardware Summary}}
* Atmel AVR ATmega6490A AVR microcontroller


== Software ==
== Software ==
Zeile 21: Zeile 21:
Therefore, an extension to the Arduino IDE is developed to allow the PUGAUGE being selected as a board type in the Arduino IDE. This should not be too complicated, as the PUGAUGE processor is an Atmel AVR processor closely related to the Atmel AVR processors used in the Arduino UNO and MEGA.
Therefore, an extension to the Arduino IDE is developed to allow the PUGAUGE being selected as a board type in the Arduino IDE. This should not be too complicated, as the PUGAUGE processor is an Atmel AVR processor closely related to the Atmel AVR processors used in the Arduino UNO and MEGA.


Additionally the '''''optiboot''''' bootloader for the Arduino is being modified to run on the PUGAUGE and allow Arduino sketches to be uploaded onto the PUGAUGE.
Additionally the '''''atmegaboot''''' bootloader for the Arduino is being modified to run on the PUGAUGE and allow Arduino sketches to be uploaded onto the PUGAUGE.


{{tbc}}
For the time being, a board/platform package is available with working minimal build and upload configuration:
 
=== Application ===
 
A special LCD library is being developed that provides easy access to the on board LCD ( 8 characters, 14 segments plus decimal point and apostroph).
 
{{tbc}}
 
== Build notes ==
 
=== Connection of ATmega6490 ===
 
In the first development version all circuitry is mounted on a solderless breadboard:
 
{{ServerImage|PUGAUGE_BB-001.JPG|height=400px}}
 
* The ATmega6490 is mounted on the [[#TQFP-100 Breakout board|BBR]].
* LCD-Voltage Buffer Capacitor: 3x220nF FKC in parallel from ATmega6490 Pin 1 / BBR Pin 76 to GND
* System Status LED: Port line PB0 (ATmega6490 Pin 19 / BBR Pin 94) to 330 Ohm to yellow LED to GND
* In-System-Programmer (IST) USPasp connected to 10-pin 2x5 100mil-spaced Connector:
 
See also http://nerdyelectronics.com/usbasp-tutorial/ :
 
<pre>
                                                          Connector seen on board pins
USBasp pin number USBasp pin MCU Pin                          +---+---+---+---+---+
1           MOSI      MOSI                            | 2 | 4 | 6 | 8 |10 |
5                Reset      Reset                            +---+---+---+---+---+
7                SCK        SCK                              | 1 | 3 | 5 | 7 | 9 |
9                MISO      MISO                            +---+---+---+---+---+
10                GND        GND
2                Vcc        Vcc
</pre>


{{TableBegin}}
{{TableBegin}}
! Signal name !! description                  !! 10-pin-conn pin number !! ATmega6490 pin name !! ATmega6490 pin number !! BBR pin number
! Feature !! Status PUGAUGE6490 !! Status PUGAUGE1284
|-
| MOSI        || data from programmer to MCU  ||          1            ||      MOSI          ||        21            ||  96
|-
|-
| Reset      || reset pulse to MCU          ||           5            ||      Reset          ||        30            ||  5
| atmegaboot customization || complete || {{tbc}}
|-
|-
| SCK        || serial clock to MCU          ||           7            ||        SCK          ||        20            ||  95
| build configuration || complete || {{tbc}}
|-
|-
| MISO        || data from MCU to programmer  ||           9            ||      MISO          ||        22            ||  97
| upload configuration || complete || {{tbc}}
|-
|-
| GND        || Ground reference            ||         10            ||        GND          ||  99,11,32,81        ||  74,86,7,56
| digital port customization || {{tbc}} || {{tbc}}
|-
|-
| VCC        || +5V supply from programmer  ||          2            ||        VCC          ||  100,10,31,80        ||  75,85,6,55
| analog input customization || {{tbc}} || {{tbc}}
{{TableEnd}}
 
* Serial-USB Adapter, connected to TXD/RXD of UART0 of ATmega6490 PLUS Auto-Reset-Circuit using DTR of Serial-USB:
 
{{TableBegin}}
! Signal name !! description                  !! FT323-adapter pin !! ATmega6490 pin name !! ATmega6490 pin number !! BBR pin number
|-
|-
| GND        || Ground reference            || GND              || GND                || &nbsp; || &nbsp;
| PWM "analog" output customization || {{tbc}} || {{tbc}}
|-
|-
| TXD        || data from USB to MCU        || TXD              || RXD/PCINT0/PE0      ||    2  || 77
| hardware serial core || {{tbc}} || {{tbc}}
|-
|-
| RXD        || data from MCU to USB        || RXD              || TXD/PCINT1/PE1      ||    3  || 78 
| software serial core || {{tbc}} || {{tbc}}
|-
|-
| DTR        || DataTerminalReady from USB  || DTR             
| PUGAUGE LCD as standard Arduino library || {{tbc}} || {{tbc}}
| 100nF Capacitor to "Reset"-Pin<br/>PLUS: pullup-10k-Resistor to +5V<br/>parallel to 1N4148Diode<br/>Cathode to +5V, Anode to Reset<br/>PLUS "RESET"Button to GND
| 30 || 5
{{TableEnd}}
{{TableEnd}}


=== TQFP-100 Breakout board ===
To add the PUGAUGE core to your Arduino installation, add the following URLs to the arduino board manager:


When soldering the AVR6490 Chip in the TQFP-100 case to it's breakout board, I made an error:
* <code>https://github.com/esp8266/Arduino/releases/download/2.4.0-rc2/package_esp8266com_index.json</code>,
* <code>http://scherer3002.duckdns.org/public/public/Projekte/PUGAUGE/downloads/package_pucon_pugauge_index.json</code>


I turned it 90 degrees to the right. Therefore Pin 1 of the chip appears at Pin 76 of the breakout board.
{{tbc}}


The algorithm to find the BBR pin when knowing the pin number on the TQFP-100 package of the ATmega6490 is:
=== Application ===


<code>''BBR-pin'' = (''TQFP-pin'' + 75) MOD 100</code>
A special LCD library is being developed that provides easy access to the on board LCD ( 8 characters, 14 segments plus decimal point and apostroph).


There will be a translation table on the [[PUGAUGE Tables]] page.
{{tbc}}
 
Connection from the D301 LCD to the PUGAUGE MCU is documented on the [[PUGAUGE Tables]] page.


== Font made visible ==
== Font made visible ==


Likewise, a graphic depiction of the 14-Segment font is to be found on the [[PUGAUGE Tables]] page.
Likewise, a graphic depiction of the 14-Segment font is to be found on the [[PUGAUGE Tables]] page.

Aktuelle Version vom 13. Juni 2020, 11:38 Uhr

The PUGAUGE is intended to be a base platform for devices to display Information in an environment where low power requirements are mandatory.

Examples are:

  • Bike computers
  • Thermometers
  • mobile measurement devices

Hardware

Overview

PUGAUGE Hardware consists of:

  • 8-Character Segmented LCD 14-segment Display
  • Atmel AVR ATmega6490A AVR microcontroller
  • Atmel ISP Connection
  • Arduino Upload Serial Interface
  • A Status LED on MCU port PB0

Software

Platform

The PUGAUGE is intended to be Arduino-compatible. The application software shall benefit from the ease of use, familiarity of many developers and availability of many libraries for sensors and other peripherals.

Therefore, an extension to the Arduino IDE is developed to allow the PUGAUGE being selected as a board type in the Arduino IDE. This should not be too complicated, as the PUGAUGE processor is an Atmel AVR processor closely related to the Atmel AVR processors used in the Arduino UNO and MEGA.

Additionally the atmegaboot bootloader for the Arduino is being modified to run on the PUGAUGE and allow Arduino sketches to be uploaded onto the PUGAUGE.

For the time being, a board/platform package is available with working minimal build and upload configuration:

Feature Status PUGAUGE6490 Status PUGAUGE1284
atmegaboot customization complete (zu ergänzen)
build configuration complete (zu ergänzen)
upload configuration complete (zu ergänzen)
digital port customization (zu ergänzen) (zu ergänzen)
analog input customization (zu ergänzen) (zu ergänzen)
PWM "analog" output customization (zu ergänzen) (zu ergänzen)
hardware serial core (zu ergänzen) (zu ergänzen)
software serial core (zu ergänzen) (zu ergänzen)
PUGAUGE LCD as standard Arduino library (zu ergänzen) (zu ergänzen)

To add the PUGAUGE core to your Arduino installation, add the following URLs to the arduino board manager:

Application

A special LCD library is being developed that provides easy access to the on board LCD ( 8 characters, 14 segments plus decimal point and apostroph).(zu ergänzen)

Font made visible

Likewise, a graphic depiction of the 14-Segment font is to be found on the PUGAUGE Tables page.