First Configuration RPICT: Difference between revisions

From lechacal
Jump to navigation Jump to search
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 4: Line 4:
==Configuration Utility==
==Configuration Utility==


First install the utility with the commands below.
If not done already first install the utility with the commands below.
  sudo apt-get install python-serial
  sudo apt-get install python-serial
  wget lechacal.com/RPICT/tools/lcl-rpict-config.py.zip
  wget lechacal.com/RPICT/tools/lcl-rpict-package_latest.deb
  unzip lcl-rpict-config.py.zip
  sudo dpkg -i lcl-rpict-package_latest.deb
sudo cp lcl-rpict-config.py /usr/local/bin


Run it once to copy the content of the epprom to a local file called /tmp/rpict.conf.
Run it once to copy the content of the eeprom to a local file called /tmp/rpict.conf.


  lcl-rpict-config.py -a
  lcl-rpict-config.py -a


You might have to reset the RPICT board manually for some older RPICT unit versions.  
(You might have to reset the RPICT board manually with the white button for some older RPICT unit versions.)


This will create the /tmp/rpict.conf file inside which you can view the current configuration.
This will create the /tmp/rpict.conf file inside which you can view the current configuration.
Line 32: Line 31:
Note - The /tmp/rpict.conf file will be deleted on reboot of the Raspberrypi.
Note - The /tmp/rpict.conf file will be deleted on reboot of the Raspberrypi.


===Web tool===
These is also a web tool to help you making configuration interactively.
[[RPICT_configuration_web_tool]]


==EU/US main power type==
==EU/US main power type==
What follows does not apply if you have a RPICT8 or RPICT3T1 or RPICT4T4.


All RPICT are sold configured for the UK main power type but they do also work for any other main power around the world.
All RPICT are sold configured for the UK main power type but they do also work for any other main power around the world.


For the US main type there are 2 parameters to change.
'''US power type''':<br>
Change xpFreq from 50 to 60
For the US main type there are two parameters to change.<br>
Change Vest from 240 to 120
Change '''xpFreq''' from 50 to 60<br>
Change '''Vest''' from 240 to 120<br>


For the EU main type there is parameter to change.
'''EU power type''':<br>
Change Vest from 240 to 230
For the EU main type there is one parameter to change.<br>
Change '''Vest''' from 240 to 230<br>


===Ac/ac voltage transformer===
===Ac/ac voltage transformer===
If you have acquired an ac/ac voltage transformer then you will need to change the calibration coefficient for the voltage port.
If you have acquired an ac/ac voltage transformer then you will need to change the calibration coefficient for the voltage port.


For RPICT3V1 and all version 3 RPICT. Change the 256.6 into
For RPICT3V1 and all version 3 RPICT. Change the 256.6 into<br>
(EU) 77DE-06-09: 248.1
(EU) 77DE-06-09: 248.1<br>
(US) 77DA-10-09: 124.0  
(US) 77DA-10-09: 124.0 <br>
 
For all version 4 RPICT. Change the 268.96 into<br>
(EU) 77DE-06-09: 248.69<br>
(US) 77DA-10-09: 130.00 <br>
 
For all version 5 RPICT. Change the 256.6 into<br>
(EU) 77DE-06-09: 248.1<br>
(US) 77DA-10-09: 124.0<br>
 
===ZMPT Module===
RPICT units with ZMPT support are sold configured ready for the 280V module.
 
If you have acquired a ZMPT module for 140V then you will need to change the calibration coefficient for the voltage port.
 
For RPICT3V1 and all version 3 RPICT. Change the 249.34  into<br>
ZMPT_140: 124.67 <br>
 
For all version 4 RPICT. Change the 181.82 into<br>
ZMPT_140: 90.91 <br>
 
For all version 5 RPICT. Change the 200.43 into<br>
ZMPT_140: 100.21 <br>
 
==Advanced Configuration==
 
Once the above setup configuration are good to run the RPICT unit in good condition.
 
If you are looking to perform more advance configuration then refer to the links below.


For all version 4 RPICT. Change the 268.96 into
* For RPICT3V1 RPICT3T1 RPICT4T4v2.5
(EU) 77DE-06-09: 248.69
[[Attiny_Over_Serial_Configuration_A2]]
(US) 77DA-10-09: 130.00


For all version 5 RPICT. Change the 256.6 into
* For all other boards.
(EU) 77DE-06-09: 248.1
[[Over_Serial_Configuration_-_Sketch_3.0]]
(US) 77DA-10-09: 124.0

Latest revision as of 13:31, 11 February 2023

The configuration of the RPICT unit is stored inside the eeprom of the Arduino chip. The configuration can be modified over serial using our utilities program lcl-rpi-config.py.

Configuration Utility

If not done already first install the utility with the commands below.

sudo apt-get install python-serial
wget lechacal.com/RPICT/tools/lcl-rpict-package_latest.deb
sudo dpkg -i lcl-rpict-package_latest.deb

Run it once to copy the content of the eeprom to a local file called /tmp/rpict.conf.

lcl-rpict-config.py -a

(You might have to reset the RPICT board manually with the white button for some older RPICT unit versions.)

This will create the /tmp/rpict.conf file inside which you can view the current configuration.

Edit the file using the nano text editor.

nano /tmp/rpict.conf

You might edit the file at this point. Refer to the dedicated page for your RPICT model to find out the meaning of each parameters.

Then you can update the config file inside the chip by entering

lcl-rpict-config.py -a -w /tmp/rpict.conf

On successful completion of this command the RPICT will be ready to operate with the new parameters.

Note - The /tmp/rpict.conf file will be deleted on reboot of the Raspberrypi.

Web tool

These is also a web tool to help you making configuration interactively.

RPICT_configuration_web_tool

EU/US main power type

What follows does not apply if you have a RPICT8 or RPICT3T1 or RPICT4T4.

All RPICT are sold configured for the UK main power type but they do also work for any other main power around the world.

US power type:
For the US main type there are two parameters to change.
Change xpFreq from 50 to 60
Change Vest from 240 to 120

EU power type:
For the EU main type there is one parameter to change.
Change Vest from 240 to 230

Ac/ac voltage transformer

If you have acquired an ac/ac voltage transformer then you will need to change the calibration coefficient for the voltage port.

For RPICT3V1 and all version 3 RPICT. Change the 256.6 into
(EU) 77DE-06-09: 248.1
(US) 77DA-10-09: 124.0

For all version 4 RPICT. Change the 268.96 into
(EU) 77DE-06-09: 248.69
(US) 77DA-10-09: 130.00

For all version 5 RPICT. Change the 256.6 into
(EU) 77DE-06-09: 248.1
(US) 77DA-10-09: 124.0

ZMPT Module

RPICT units with ZMPT support are sold configured ready for the 280V module.

If you have acquired a ZMPT module for 140V then you will need to change the calibration coefficient for the voltage port.

For RPICT3V1 and all version 3 RPICT. Change the 249.34 into
ZMPT_140: 124.67

For all version 4 RPICT. Change the 181.82 into
ZMPT_140: 90.91

For all version 5 RPICT. Change the 200.43 into
ZMPT_140: 100.21

Advanced Configuration

Once the above setup configuration are good to run the RPICT unit in good condition.

If you are looking to perform more advance configuration then refer to the links below.

  • For RPICT3V1 RPICT3T1 RPICT4T4v2.5

Attiny_Over_Serial_Configuration_A2

  • For all other boards.

Over_Serial_Configuration_-_Sketch_3.0