Pin mapping
Pin mapping between microcontroller, pHMeter, and Arduino.
Port | Pin | Arduino Mask | Alternative functions | pH V1.1.2-b |
---|---|---|---|---|
B | 7 | D11 (PWM) | OC0A OC1C PCINT7 /RTS | Pin for Input/Ouput 1 (PWM alkaline food) |
B | 6 | D10 (PWM) | OC1B PCINT6 OC.4B ADC13 | Pin for LCD D6 |
B | 5 | D9 (PWM) | OC1A PCINT5 /OC.4B ADC12 | Pin for LCD D5 |
B | 4 | D8 | PCINT4 ADC11 | Pin for LCD D4 |
B | 3 | MISO | PDO MISO PCINT3 | |
B | 2 | MOSI | PDI MOSI PCINT2 | |
B | 1 | SCK | SCK PCINT1 | |
B | 0 | /SS | /SS PCINT0 | Ext. temp. 1 |
C | 7 | D13 (PWM) | ICP3 CLK0 OC4A | LED for check bioreactor code run correctly |
C | 6 | D5 (PWM) | OC.3A /OC4A | Pin for LCD D7 |
D | 7 | D6 (PWM) | T0 OC.4D ADC10 | Pin for LCD Enable |
D | 6 | D12 | T1 /OC.4D ADC9 | Pin for Input/Ouput 2 (PWM for acidic food) |
D | 5 | XCK1 /CTS | Ext. temp. 2 | |
D | 4 | D4 | ICP1 ADC8 | Pin for LCD RS |
D | 3 | D3 | /INT3 TXD1 | Rotary pin B |
D | 2 | D0 | /INT2 RXD1 | Rotary pin A |
D | 1 | D2 SDA | /INT1 SDA | |
D | 0 | D3 (PWM) SCL | /INT0 SCL OC0B | |
E | 6 | D7 | INT6 /AIN0 | Rotary push button |
E | 2 | /HWB | /HWB | Enable Chip (/EC) pin for external flash memory /HWB |
F | 7 | A0 | ADC7 TDI | Data for HX711 (pH adquisiton) |
F | 6 | A1 | ADC6 TDO | Clock for HX711 (pH adquisition) |
F | 5 | A2 | ADC5 TMS | Pin for Input/Ouput 3 |
F | 4 | A3 | ADC4 TCK | Pin for Input/Ouput 4 |
F | 1 | A4 | ADC0 | Battery level |
F | 0 | A5 | ADC0 | Pin for conductometer adquisition |