I've always had trouble getting drivers to work but now I can't make anything work on any computer any board. I have painted myself into a corner I have made a water treatment system but I need the controller programmed I've been trying for two mounth solid on this last attemptI need to get my code uploaded to a nano but I'm out of gas I need to get my contaminatedf water fixed and this nano is the heart of it. I've tried everything I could find on the web and I'm giving up. I need someone to load the code onto a nano for me. maybe it's my brain or maybe it's my computer i don't know i only know that i can't do it. there 9is no one near me that i can find that knows anything about arduino I'm willing to pay someone to load a nano for me. I woulkd rather have someone show me where the disconect is but i'm not holding my breath. I'm getting older and I'm not as sharp as I was just 6 months ago. my doctor tells me there is nothing wrong with me but i know that's not true. I have up loaded to an uno recently but can no longer do that either. I used to be able to upload to a nano until they started putting the ch340 chip in them. and aparently i did manage to upload to a nano with a ch340 because i found one with working code in it but it wasn't compatable with my current circuit configuration and it had to be adjusted by changing the code and re-uploading so that won't work the code needs to be adjusted after uploading
i have the board built after 12 tries I can't believe i failed at such a simple circuit so many times. but it is built but i can't test it untill the code is loaded on the board here is my code, it may still have some bugs in it but it's mostly done:
could not upload so i could not test the lcd library I need to print to an lcd display 16x2 i2c to show the user what the settings for psi is and what the reading is it uses two float sensors one to tell if the first tank is not full to open a valve to fill it where it gets treated with ozone and one float sensor to be sure there is clean water available to pump into the presure tank
I have not been able to test the lcd library to make sure it will work with my screens so this is all i have
#include <LiquidCrystal.h>
//John Laramie jjohn.laramie@gmail.com
//Thu, Jul 20, 3:56 AM (4 days ago)
// this sketch is written for a water treatment system made by john laramie in 2023
// pins used
int ozone=1,led1=2,float1=4,valve=6, float2=7,led2=8,psi=A0,but1=A1,but2=A2,pump=12;
//varibles
int psiref=0,psilow=0,ozoneOn=0,but1was=0,but2was=0,float1was=0,float2was=0,alarm=0,pumping=0;
int fill=0;
unsigned long ozstart=0,fillst=0,ozrun=0,fillrun=0,min1=60000,min20=1200000,pumpst=0;
void setup(){tp0();tp1();tp2();tp9();ozstart=millis();pu(but1);pu(but2);pu(float1);pu(float2);out(ozone);out(valve);out(pump);out(led1);
out(led2);Serial.begin(9600);}
//led1 indicates tank1 not full and filling
//led2 indicates presure in presure tank is low and pump will be pumping if water is in tank2
void loop(){ptank():tank1();buts();if(alarm>0){led11();led21();if (alarm==1){delay(75);led00();}
if(alarm==2){delay(20);led00();} } }
void tp0(){}
void tank1(){if(millis();>fillst+min20){if (fill==1){
dw(valve,0);fill=0;dw(led1,0);fillst=millis();}else{
dw(valve,1);fill=1;dw(led1,1);fillst=millis();}
if(dr(float1)==0) {//tank is full of water make sure valve is closed.if(alarm==1)alarm=0;
dw(valve,0);dw(led1,0);fill=0;}else{// tank not full open valve and record time
dw(valve,1);dw(led1,1);if(fill==0){fillst=millis();fill=1;}} }}
void tp9(){}
void pu(int pin){pinMode(pin,INPUTPULLUP);}
void out(int pin){pinMode(OUTPUT);}
int dr(int pin){int d=0;d= digitalRead(pin);return d;}
void dw(int pin,int d){digitalWrite(pin,d);}
int ar(int pin,int d){int d=0;d=analogRead(pin);return d;}
int buts(){int but=0;if(dr(but1)==0){if(but1was==1){psiref++;psich();}but1was=0;}else{but1was=1;}
if(dr(but2)==0){if(but2was==1){psiref--;psich();}but2was=0;}else{but2was=1;}}
void tp1(){}
void led11(){dw(led1,1);}
void led10 (){dw(led1,0);}
void led21(){dw(led2,1);}
void led20 (){dw(led2,0);}
void led00 (){dw(led1,0);dw(led2,0);}
void tp2(){}
void ptank(){
if (pumping==1){if(millis();>pumpst+2*min20){alarm=2;pumpoff();}
if(ar(psi)<psiref){if(dr(float2)==0){if(pumping==0){pumpst=millis();dw(pump,1);pumping=1;led21();} }else{
pumpoff();} }else{
pumpoff();} } } }
void pumpoff(){dw(pump,0);pumping=0;led20();}
//void psich(){Serial.print("psiref=");Serial.print(psiref);Serial.print("psi=");Serial.print(psi);lf();}
I also wanted to add some code to keep some stats on how long everything ran per day to get an idea over time how much water I'm using but if i can't upload there is no way to guess at a working code that would do this. it is like a blind man trying to show another blind man around the forrest i have no way to test anything so i don't even know if I am even using a computer or if it's all in my imagination things are so weird to me now that I'm not even wsure I'm still alive or if this is a hellish punishment designed just for me. electronics have been my whole life long hobby my only interest and now I am un able to do anything with it. I was looking forward to having the time and money and space to build all kinds of projects at this time of my life and just in the last six months all my abilities have been lost. I need someone to help me find out where the disconect is so i can Maybe fix it.or maybe I'm condemed to live the rest of my life with all my dreams just out of reach.
no wait something happened to it is is corrupted some how
i thought this was happening to my code when i was trying to use linux so i came back to windows and i see it is still happening.
all i know is that i need help and no body i know can help me I need to get this working before i completely loose my mind
nobody here will ever figure out what i did or what i need i don't know maybe my reality is distorted I have no way of knowing if i'm making any sense or not. but nobody here can understand my problem. they say" why don't you put it back the way you found it ".and my answer is because i made this system from parts there was no system until i made one but i can't get it working until i get this code uploaded.so it's just a 2 thousand dollar pile of trash with a ton of concrete at it's base. it will have to be riped out and i will have sewage water on tap for the rest of my life I tried to build a board with discrete components to handle it. i can design the circuit but can't build the board I tried many times. the only reason i was able to build this one is because i used a microprocessor. it as you know makes the construction of devices so much simpler. can someone please help me? i live in sonoma county california and can't find anyone with any knowledge of electronics even. i used to work in silicon valley but that was some time ago I'm not going to paste my sketch again it got scrambled somehow when i did that last time
I really need to find out where the problem is, it could be with my ability to preceive reality because nothing makes any sense anymore but i do need to make this work for my health. I would like to continue using arduino but it looks like I'm done with it because nothing works for me anymore I need help
I need this one last project to work even if i'm not the one to program it
there has to be a way to get these things to up load. i mean you guys are still able to use them right? why am i not allowed to use them anymore