![]() Unsigned long time = (endMillis - startMillis) PinMode(XM, OUTPUT) //because TFT control pinsīool pressed = (p.z > MINPRESSURE & p.z = maxCurrent) PinMode(YP, OUTPUT) //restore shared pins Int pixel_x, pixel_y //Touch_getXY() updates global vars ![]() TouchScreen ts = TouchScreen(XP, YP, XM, YM, 300) Next problem would be is it possible for me to have a permanent calculation running so I can keep updating kWh per kg without refreshing the unit? so like a live reading of Amps being converted and then the screen constantly updating with the new values? any ideas or pointers would be amazingĬonst int XP=8,XM=A2,YP=A3,YM=9 //240x320 ID=0x9341Ĭonst int TS_LEFT=902,TS_RT=142,TS_TOP=93,TS_BOT=885 // done then with those readings I want to convert it into KWH.PerKG which is not a problem. I want to take a reading say 20 times and then calculate the average for those readings this is where I am stuck. what I am trying to do is take a reading of amps with a current transformer. I have the project sort of working and visually its fine, however I need some help with how to do the calculations. ![]() This is my first post here and am looking for some help with a three phase energy meter/calculator I am working on.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |