Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Samajadi authored Nov 3, 2022
1 parent 280ad20 commit e87cfee
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,21 @@ The master of this stage is the microcontroller(STM32f103ccu8) popularly known a
<img width="521" alt="Screen Shot 2022-10-20 at 3 22 12 PM" src="https://user-images.githubusercontent.com/99180312/196975441-1a624a4a-a18b-4802-9d05-9fbae708dcd0.png">




# How to get started

This document summarizes the manufacturing guide to enable a skilled person to manufacture the smart energy meter.


## Web Software :
The web software is split into different parts as highlighted below.
i. Extraction of zip file from Github.
ii. Creating database.
iii.Linking Thingsboard public link to webpage.

### Extraction of zip file from Github :
The web software can be replicated by any developer by downloading the zip code file from https://github.com/EnAccess/OpenSmartMeter/tree/main/Web%20software . after the code is downloaded, developer will need to host the web on a hosting platform.
### Extraction of file from Github :
The web software can be replicated by any developer by downloading the code file from https://github.com/EnAccess/OpenSmartMeter/tree/main/Web%20software . after the code is downloaded, developer will need to host the web on a hosting platform.
### Creating database :
The database schema file can be downloaded from the Github link provided below
https://github.com/EnAccess/OpenSmartMeter/blob/main/Documentations/Web%20Software%20and%20API%20documentation/meter.sql for testing purpose, next user can assign a meter number as desired from MT1 to MT99990 and insert into the meter Database column for meter number.
Expand All @@ -82,6 +86,7 @@ https://github.com/EnAccess/OpenSmartMeter/blob/main/Documentations/Web%20Softwa
### Linking Thingsboard public link to webpage :
After Thingsboard page is setup, developer make the data available by changing the privacy setting from private to public, next the public link is copied to the Thingsboard column specified in the database for each user.


## Hardware :
The hardware is splitted into different parts as highlighted below.
a.Extracting manufacturing file.
Expand All @@ -103,12 +108,13 @@ Output(12v) = 10 turns.
Figure 1 : Transformer configuration/turn diagram.



## Calibration :
The meter calibration is done after the meter PCB component is fully assembled alongside exterior casing.
Step 1 : Calibrating voltage and current
The design engineer proceed to calibrate the voltage, current. The voltage and current is calibrated by calculating the value measured by meter as compared to the true value measured by a test bench, the excel sheet available in the link provided below is used to calibrate the voltage and current by inputting the measured and actual values of voltage and current in the appropriate cell of the excel calculator.
https://github.com/EnAccess/OpenSmartMeter/blob/main/Documentations/Datasheet/Energy%20setpoint%20calculator.xlsx, after this is done, the hex code gotten is written to the neccesary registers of Ugain, IgainN in the SAM_UART.cpp library provided in the link below.
https://github.com/EnAccess/OpenSmartMeter/blob/main/Firmware%20code/Library/SamATM90E26_library.zip after this is done, the checksum2 value displayed on the LCD screen while the meter is starting up is written to the CSTwo register in the SAM_UART.cpp library, after this is done, design engineer re-uploads the code to the chip and all measuring parameter is correct.
https://github.com/EnAccess/OpenSmartMeter/blob/main/Documentations/Datasheet/Energy%20setpoint%20calculator.xlsx, after this is done, the hex code gotten is written to the neccesary registers of Ugain, IgainN in the SAM_UART.cpp library provided in the link below.
https://github.com/EnAccess/OpenSmartMeter/blob/main/Firmware%20code/Library/SamATM90E26_library after this is done, the checksum2 value displayed on the LCD screen while the meter is starting up is written to the CSTwo register in the SAM_UART.cpp library, after this is done, design engineer re-uploads the code to the chip and all measuring parameter is correct.
### Note : A meter test bench is needed to know the true value of voltage and current to be calibrated into the meter.
Step 2 : setting impulse rate
The impulse rate is changed by writing to PLconstH and PLconstL in the SAM_UART.cpp library after inputting the correct value of
Expand All @@ -134,4 +140,4 @@ Connect the input of the meter through an incandescent bulb without any load to



### Warning : pls do not assemble or try manufacturing the meter if you are not a skilled electronics engineer or engineer with similar skill.
### Warning : Pls do not assemble or try manufacturing the meter if you are not a skilled electronics engineer or engineer with similar skill.

1 comment on commit e87cfee

@Samajadi
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addition of extra information to Read.me file.

Please sign in to comment.