tag:blogger.com,1999:blog-3474003565127679393.post7204689006227405944..comments2023-10-07T03:31:38.793-07:00Comments on CSU IEEE Open Design Competition: Workshop 2acegardhttp://www.blogger.com/profile/11508828203514429431noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3474003565127679393.post-4611942826319795892012-12-25T04:04:33.781-08:002012-12-25T04:04:33.781-08:00excellent post i read it with my friends it contin...excellent post i read it with my friends it continue more better for best wealthy knowledge thanks<br /><br />http://homeworkhelp.freetzi.com<br /><br /><a href="http://homeworkhelp.freetzi.com/" rel="nofollow">homework help</a><br /><br /><a href="http://homeworkhelp.freetzi.com/mgt_311_final_exam/" rel="nofollow">mgt 311 final exam</a><br /><br /><a href="http://homeworkhelp.freetzi.com/eco_365_final_exam/" rel="nofollow">eco 365 final exam</a><br /><br /><a href="http://homeworkhelp.freetzi.com/eco_372_final_exam/" rel="nofollow">eco 372 final exam</a><br /><br /><a href="http://homeworkhelp.freetzi.com/acc_561_final_exam/" rel="nofollow">acc 561 final exam</a>homeworkpandohttps://www.blogger.com/profile/01863187633986683577noreply@blogger.comtag:blogger.com,1999:blog-3474003565127679393.post-12386699618339451422012-12-01T16:01:58.819-08:002012-12-01T16:01:58.819-08:00Hey Austin, what was the code that we used to read...Hey Austin, what was the code that we used to read the voltage initially to determine the ranges for the code above?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3474003565127679393.post-28764350859787830562012-11-28T19:42:30.315-08:002012-11-28T19:42:30.315-08:00void setup(){
Serial.begin(9600); //Start seri...void setup(){<br /> Serial.begin(9600); //Start serial<br />}<br /><br />int attempt = 0; //The attempt<br />char password[3] = {'a','c','b'}; //The password to get booty (oo la la)<br />char passAttempt[3]; //The user's power attempt<br /><br />void loop(){<br /> int voltage = analogRead(0); //get the analog voltage<br /> <br /> if (voltage > 100){ //check to see if stylus is touching<br /> passAttempt[attempt] = voltToChar(voltage); //get character for pass<br /> attempt++;//scale attempt by one<br /> Serial.println(voltToChar(voltage)); //see what is happening<br /> }<br /> <br /> if (attempt == 3){<br /> attempt = 0; //set attempt attempt to zeros<br /> if (passAttempt[0] == password[0] &&<br /> passAttempt[1] == password[1] &&<br /> passAttempt[2] == password[2]){ //see if passwords mach<br /> <br /> Serial.println("Arr matey! Ye may enter and claim yer booty!"); //password correct<br /> }<br /> else Serial.println("None may enter here! Get yer booty somewhere else!"); //Password incorrect<br /> }<br /> while(analogRead(0) > 100){} //Wait for user to take off stylus<br /> delay(50); //short delay for debounce<br /> <br /> <br /> <br />}<br /><br />char voltToChar(int voltage){<br /> if (voltage > 450)<br /> return 'a';<br /> else if (voltage > 300)<br /> return 'b';<br /> else return 'c';<br /> <br />}Austin S.https://www.blogger.com/profile/15434946907883300625noreply@blogger.com