Sunday, June 1, 2014

Sain Smart LCD + Arduino Uno for voltage readout


Here is the code:

#include <LiquidCrystal.h> // include the LCD library
LiquidCrystal lcd( 8, 9, 4, 5, 6, 7 );

int VinPin = A5; //Voltage input pin
int VinValue1 = 0;
int VinValue2 = 0;
int TimeValue1 = 0;
#define NUM_SAMPLES 10

int sum = 0;                    // sum of samples taken
unsigned char sample_count = 0; // current sample number
float voltage = 0.0;            // calculated voltage

void setup() {
    lcd.begin(16, 2); // lcd rows and columns
    lcd.print("Volts  %   Hours"); // title of sorts
}

void loop() {
     while (sample_count < NUM_SAMPLES) {
        sum += analogRead(A5);
        sample_count++;
        delay(10);
    }
    voltage = ((float)sum / (float)NUM_SAMPLES * 5.015) / 1024.0;
    VinValue1 = analogRead(VinPin) / 10;
    VinValue2 = VinValue1 / 1.02;
    lcd.setCursor(0, 1);
    lcd.print(voltage);
    lcd.setCursor(7, 1);
    lcd.print(VinValue2);
    delay(100);
    lcd.setCursor(13, 1);
    TimeValue1 = VinValue2 / 12;
    lcd.print(TimeValue1);
    sample_count = 0;
    sum = 0;
    delay(1);
}

Sunday, October 20, 2013

HD flight cam, then nice tumble, rebuild....




i crashed that copter today and it needs a rebuild, but i learned things...i know which parts to build better in the shop. so we push limits and the crash is a part of the learning. we don't not play music because we played a bad chord, the art transcends, so we play the chord the way we want next time, we know the rest of the song...

Friday, July 26, 2013

Pololu just shipped two of these to the lab!!!!!!!!!! - Pololu Simple High-Power Motor Controller 24v23

Holy moly I cannot wait to put these on RCHL v1! She is going to be moving around the parking lot by morning. It has been a long road getting her to this point. I will stream progress and post pictures of the build tonight. Also on Monday or Tuesday we should have the control board for SARA. I will try to get the both of them working together and see if RCHL can become a landing/charging station for SARA. Awesome!

Wednesday, May 8, 2013

Numbers Are Cool

A 10 dollar transaction.

A 100,000 dollar transaction.

Those have different meanings to some people. What if each number before 10 and after 100,00 had a different meaning. Lose the dollar sign. Just look at the numerals 1 to x. 1 to 100 for example. In each numeral you will find a meaning that is deeper than it's numerical value. In some cases, a person that is exceptional in math or equations might describe that they view a number or groups of numbers as one or many colors. The numeral 2 could remind someone of a two dollar bill and a memory comes to mind, etc.

So, personally we may have a filter on the way that we see certain numbers. Imagine a parallel world, where the unlucky 13 in this world has a completely different meaning, maybe it holds a formula for the letter B.


13
49   =  75                                                                                       1
13
               12                                                                               1            
12
39  =   63      0                                                                         1             2
12
               12      0                                                                   1             2    
11
29   =   51     0       8                                                          1             2        4
11
               12       8       5                                                  1            2          4    
10
19   =  39      8       3       3                                            1         2            4       8
10
                3        5       2        1                                   1          2          4        8  
9
18   =   36     0       5        2       1                            1          2         4         8      16
9
                3       0        0        2      1                      1        2           4         8     16
8
17     =  33    0       0        0       2       1             1         2          4          8     16       32
8
                3       0        0        0       2      1       2       2          4           8     16      32    
7
16    =   30    0       0       0        0      2       1 2     3          4          8     16      32       64
7
                3       0        0       0       0       2       4         5       8      16       32       64
6            
15    = 27     0        0       0       0       0                 7         9      16       32      64     128
6
                3       0       0       0       0                             12     17      32      64      128
5
14  =  24       0      0       0     0                                          21     33      97      128    256
5
                3       0       0      0                                                   38      65    161     256  
4
13  = 21       0       0     0                                                               71   201     289      512
4
                3       0      0                                                                       136    362     555
3
12  = 18       0       0                                                                                337    661     1067
3
                3       9                                                                                          699     1217
2                                                                                                                                          
11  = 15       9                                                                                                  1360    2284
2
               12                                                                                                             2284  
1
01  = 3                                                                                                                           4568
1


I need help with the right hand side of this pattern. Math people unite!

UPDATE! - Look at this excel chart - what about it? I don't know, I just need help!
Google Drive