wf & j barnes lathe?

We are an animal charity that has been donated an antique wf & j barnes lathe. Any idea of its value and what can we do with it?

Question by rescuerose 6 years ago  |  last reply 6 years ago


J Tagged xbox 360 info

Hey will pay top dollar for a j taggable xbox or INFO on how to play with it on xbox live, can western union the money or paypal it to you,email me

Topic by testen500 8 years ago


1381-J replacement for Miller Solar Engine?

I know BEAM robotics have fallen out of style a bit, but I hope someone is still mucking about with them because they are super cool.  I am working on a Miller Solar Engine and trying to find a replacement for the 1381-J voltage trigger. I tried out the DS1817. It was recommended to me by one the technicians at Digi-Key as a replacement for the MN1381-J and on paper it looks like a good swap, but in the circuit it is just not resetting once the voltage drops.  I have it breadboarded and I can stick the 1381 in it and it works perfectly.  When swapped with the DS1817 it triggers once the top voltage is reached, but then never resets (it just drains forever.)  I double-checked the component type to make sure it was just not a miss shipment of the wrong item, but it checks out.  And I tried swapping the DS1817 component out thinking that I just had a dud (or 5) but it does not seem to help.  Any thoughts? Here are the data sheets on the 2 items. http://datasheets.maximintegrated.com/en/ds/DS1817.pdf http://www.semicon.panasonic.co.jp/ds4/SAG00003CEM_discon.pdf one bit of weirdness I already figured out is that the 1381 looks like it has a different 1-2-3 pin out sequence at the top of the PDF but it turns out it does not at the bottom.

Topic by kaczchris 5 years ago  |  last reply 9 months ago


How exactly did this happen in this c++ output window?

Well this is a pretty easy program i made while practicing, by mistake i entered "a", as the first element of my matrix and the whole program displayed results(i wasn't able to add other elements it directly displayed the results")  The code which i used: #include #include #include void read(int a[][10],int r,int c) {      for(int i=0;i      {              for(int j=0;j              {                      cin>>a[i][j];              }      } } void display(int a[][10], int x, int y)       {            cout<            for(int i=0; i                    {                         for(int j=0; j                                 cout<                         cout<                    }       } void displayt(int a[][10],int r,int c) {      for(int i=0;i              {                       for(int j=0;j                               cout<                       cout<              } } int main() {     int m,n;     int a[10][10],b[10][10];     cout<<"Enter the dimensions\n";     cin>>m>>n;     cout<<"Enter the first matrix\n";     read(a,m,n);     cout<<"entered matrix:\n";     display(a,m,n);     cout<<"Transpose:\n";     displayt(a,m,n);     getch();     return 0;     }

Question by ankur2893 7 years ago  |  last reply 7 years ago


ArduinoISP Does Not Support PORT Commands?

I was planning to make a drum machine that only requires two pins on the Arduino and so, wanted to use an AtTiny85v but it gives me errors like: 'DDRD' was not declared in this scope ArduinoBeats.cpp: In function 'void setup()': ArduinoBeats:97: error: 'DDRD' was not declared in this scope ArduinoBeats.cpp: In function 'void playKick()': ArduinoBeats:288: error: 'PORTD' was not declared in this scope ArduinoBeats:294: error: 'PORTD' was not declared in this scope ArduinoBeats.cpp: In function 'void playSnare()': ArduinoBeats:304: error: 'PORTD' was not declared in this scope ArduinoBeats:310: error: 'PORTD' was not declared in this scope ArduinoBeats.cpp: In function 'void playHat()': ArduinoBeats:320: error: 'PORTD' was not declared in this scope ArduinoBeats:326: error: 'PORTD' was not declared in this scope ArduinoBeats.cpp: In function 'void playCrash()': ArduinoBeats:335: error: 'PORTD' was not declared in this scope ArduinoBeats:341: error: 'PORTD' was not declared in this scope I had named the sketch ArduinoBeats so that explains all the ArduinoBeats stuff. Does anybody know how to add this command to the AtTiny library? Any help would be appreciated. Here is the code from Little Scale: /* Arduino Beats by Sebastian Tomczak 6 April 2008 */ // Working Variables byte byteA; byte byteB; int delayTime = 100; int barLength = 16; // Beats byte bar1[] = { 1, 0, 1, 0, 2, 4, 1, 2, 1, 0, 1, 0, 2, 1, 3, 0 }; byte bar2[] = { 1, 0, 1, 0, 2, 0, 1, 2, 1, 0, 1, 0, 2, 2, 2, 2 }; byte bar3[] = { 1, 3, 1, 3, 2, 3, 1, 2, 1, 3, 1, 2, 1, 1, 4, 4 }; byte bar4[] = { 1, 0, 1, 0, 2, 2, 0, 2, 2, 1, 1, 4, 1, 1, 4, 4 }; // Samples byte kick[] = { 127, 80, 42, 5, 165, 242, 241, 233, 128, 73, 48, 22, 127, 69, 55, 113, 151, 183, 209, 217, 223, 228, 233, 215, 161, 117, 91, 76, 65, 49, 37, 31, 31, 48, 83, 120, 146, 166, 183, 198, 206, 210, 209, 199, 178, 145, 111, 88, 78, 73, 69, 67, 72, 80, 88, 97, 109, 124, 137, 150, 163, 171, 174, 172, 168, 160, 144, 125, 114, 110, 108, 104, 104, 106, 109, 110, 112, 117, 124, 129, 135, 142, 145, 145, 143, 140, 137, 132, 128, 125, 122, 119, 118, 119, 119, 119, 118, 118, 120, 124, 126, 129, 132, 135, 137, 137, 135, 132, 131, 130, 129, 128, 126, 126, 124, 123, 121, 120, 120, 122, 123, 124, 126, 128, 129, 130, 130, 131, 131, 131, 130, 130, 130, 129, 129, 128, 126, 125, 125, 124, 124, 124, 124, 125, 126, 126, 128, 128, 128, 129, 129, 129, 129, 129, 128, 128, 128, 128, 126, 126, 126, 126, 126, 126, 126, 126, 126, 128, 127, 126, 128, 128, 128, 128, 128, 128, 128, 128, 126, 126, 126, 126, 126, 126, 126, 126, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 }; byte snare[] = { 127, 215, 65, 212, 56, 102, 135, 122, 51, 201, 220, 46, 175, 80, 152, 95, 123, 116, 184, 155, 59, 122, 100, 161, 143, 173, 101, 155, 97, 73, 112, 98, 176, 96, 140, 77, 134, 109, 132, 149, 112, 149, 97, 161, 98, 151, 98, 155, 149, 112, 157, 103, 133, 106, 167, 97, 166, 108, 129, 124, 136, 146, 124, 136, 129, 150, 94, 130, 105, 141, 146, 128, 129, 99, 150, 121, 141, 99, 142, 116, 131, 114, 118, 143, 127, 143, 115, 144, 120, 137, 109, 129, 131, 139, 129, 113, 144, 119, 145, 117, 135, 129, 134, 136, 124, 130, 130, 139, 121, 136, 121, 132, 128, 127, 126, 122, 130, 126, 138, 120, 136, 122, 131, 123, 130, 128, 127, 128, 118, 132, 125, 131, 122, 131, 125, 131, 122, 126, 128, 126, 129, 121, 129, 123, 132, 129, 127, 131, 123, 128, 125, 130, 123, 131, 123, 128, 131, 129, 128, 126, 125, 124, 131, 121, 124, 129, 130, 126, 124, 126, 127, 130, 125, 126, 128, 126, 128, 126, 126, 126, 126, 125, 128, 126, 126, 126, 126, 126, 126, 125, 128, 126, 126, 126, 126, 126, 126, 126, 126, 128, 128, 126, 128, 126, 127, 126, 128, 125, 127, 128, 128, 126, 126, 128, 126, 126, 128, 128, 128, 128, 128, 126, 128, 126, 126, 128, 128, 126, 126, 128, 128, 126, 126, 127, 126, 128, 126, 126, 128, 128, 128, 126, 126, 126, 128, 128, 126, 126, 126, 128, 128, 126, 128, 128, 126, 126 }; byte hat[] = { 127, 128, 225, 217, 99, 38, 61, 153, 152, 144, 133, 73, 122, 144, 65, 188, 87, 170, 164, 111, 122, 151, 114, 88, 174, 77, 140, 92, 122, 141, 156, 124, 121, 123, 126, 133, 132, 139, 119, 120, 127, 141, 130, 122, 129, 127, 132, 121, 139, 118, 130, 131, 129, 132, 130, 134, 126, 128, 130, 126, 122, 132, 129, 127, 131, 126, 128, 127, 126, 125, 127, 125, 128, 125, 128, 128, 127, 127, 126, 127, 128, 128, 128, 127, 127, 127, 127, 127, 128, 127, 127, 126, 127, 127, 128, 127, 128, 126, 127, 128, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 126, 126, 128, 127, 126, 127, 126, 127, 127, 126, 127, 126, 127, 127, 127, 127, 127, 126, 127, 127, 127, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 126, 126, 126, 127, 127, 127, 126, 127, 127, 127, 126, 127, 127, 126, 127, 127, 127, 127, 127, 127, 126, 126, 126, 126, 126, 126, 126, 127, 127, 126, 127, 126, 126, 127, 126, 127, 126, 126, 126, 126, 126, 126, 126, 127, 127, 126, 127, 127, 127, 127, 126, 126, 127, 127, 127, 126, 127, 126, 127, 127, 127, 127, 127, 126, 126, 127, 127, 126, 127, 127, 127, 127, 126, 127, 127, 127, 127, 127, 127, 127, 127 }; byte crash[] = { 127, 128, 225, 217, 99, 38, 61, 153, 152, 144, 133, 73, 122, 144, 65, 188, 87, 170, 164, 111, 122, 151, 114, 88, 174, 77, 140, 92, 122, 141, 156, 124, 121, 123, 126, 133, 132, 139, 119, 120, 127, 141, 130, 122, 129, 127, 132, 121, 139, 118, 130, 131, 129, 132, 130, 134, 126, 128, 130, 126, 122, 132, 129, 127, 131, 126, 128, 127, 126, 125, 127, 125, 128, 125, 128, 128, 127, 127, 126, 127, 128, 128, 128, 127, 127, 127, 127, 127, 128, 127, 127, 126, 127, 127, 128, 127, 128, 126, 127, 128, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 126, 126, 128, 127, 126, 127, 126, 127, 127, 126, 127, 126, 127, 127, 127, 127, 127, 126, 127, 127, 127, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 126, 126, 126, 127, 127, 127, 126, 127, 127, 127, 126, 127, 127, 126, 127, 127, 127, 127, 127, 127, 126, 126, 126, 126, 126, 126, 126, 127, 127, 126, 127, 126, 126, 127, 126, 127, 126, 126, 126, 126, 126, 126, 126, 127, 127, 126, 127, 127, 127, 127, 126, 126, 127, 127, 127, 126, 127, 126, 127, 127, 127, 127, 127, 126, 126, 127, 127, 126, 127, 127, 127, 127, 126, 127, 127, 127, 127, 127, 127, 127, 127 }; void setup() { DDRD = DDRD | B11111100; //In attempt to try and use an ATtiny, I got an error here } void loop() { for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar2[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar3[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar2[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar4[j]); } } // Playback Functions void playBeat(byte beat) { if(beat == 0) { for(int i = 0; i < 256; i ++) { delayMicroseconds(analogRead(0) + 1); } } else if(beat == 1) { playKick(); } else if(beat == 2) { playSnare(); } else if(beat == 3) { playHat(); } else if(beat == 4) { playCrash(); } delay(delayTime); } void playKick() { for(int i = 0; i < 256; i ++) { PORTD = kick[i]; delayMicroseconds(analogRead(0) + 1); } PORTD = 127; } void playSnare() { for(int i = 0; i < 256; i ++) { PORTD = snare[i]; delayMicroseconds(analogRead(0) + 1); } PORTD = 127; } void playHat() { for(int i = 0; i < 256; i ++) { PORTD = hat[i]; delayMicroseconds(analogRead(0) + 1); } PORTD = 127; } void playCrash() { for(int i = 0; i < 256; i ++) { PORTD = crash[i]; delayMicroseconds(analogRead(0) + 1); } PORTD = 127; }

Topic by blinkyblinky 7 years ago


ArduinoISP does not support PORT Output commands?

I was planning to make a drum machine that only requires two pins on the Arduino and so, wanted to use an AtTiny85v but it gives me errors like: 'DDRD' was not declared in this scope ArduinoBeats.cpp: In function 'void setup()': ArduinoBeats:97: error: 'DDRD' was not declared in this scope ArduinoBeats.cpp: In function 'void playKick()': ArduinoBeats:288: error: 'PORTD' was not declared in this scope ArduinoBeats:294: error: 'PORTD' was not declared in this scope ArduinoBeats.cpp: In function 'void playSnare()': ArduinoBeats:304: error: 'PORTD' was not declared in this scope ArduinoBeats:310: error: 'PORTD' was not declared in this scope ArduinoBeats.cpp: In function 'void playHat()': ArduinoBeats:320: error: 'PORTD' was not declared in this scope ArduinoBeats:326: error: 'PORTD' was not declared in this scope ArduinoBeats.cpp: In function 'void playCrash()': ArduinoBeats:335: error: 'PORTD' was not declared in this scope ArduinoBeats:341: error: 'PORTD' was not declared in this scope I had named the sketch ArduinoBeats so that explains all the ArduinoBeats stuff. Does anybody know how to add this command to the AtTiny library? Any help would be appreciated. Here is the code from Little Scale: /* Arduino Beats by Sebastian Tomczak 6 April 2008 */ // Working Variables byte byteA; byte byteB; int delayTime = 100; int barLength = 16; // Beats byte bar1[] = { 1, 0, 1, 0, 2, 4, 1, 2, 1, 0, 1, 0, 2, 1, 3, 0 }; byte bar2[] = { 1, 0, 1, 0, 2, 0, 1, 2, 1, 0, 1, 0, 2, 2, 2, 2 }; byte bar3[] = { 1, 3, 1, 3, 2, 3, 1, 2, 1, 3, 1, 2, 1, 1, 4, 4 }; byte bar4[] = { 1, 0, 1, 0, 2, 2, 0, 2, 2, 1, 1, 4, 1, 1, 4, 4 }; // Samples byte kick[] = { 127, 80, 42, 5, 165, 242, 241, 233, 128, 73, 48, 22, 127, 69, 55, 113, 151, 183, 209, 217, 223, 228, 233, 215, 161, 117, 91, 76, 65, 49, 37, 31, 31, 48, 83, 120, 146, 166, 183, 198, 206, 210, 209, 199, 178, 145, 111, 88, 78, 73, 69, 67, 72, 80, 88, 97, 109, 124, 137, 150, 163, 171, 174, 172, 168, 160, 144, 125, 114, 110, 108, 104, 104, 106, 109, 110, 112, 117, 124, 129, 135, 142, 145, 145, 143, 140, 137, 132, 128, 125, 122, 119, 118, 119, 119, 119, 118, 118, 120, 124, 126, 129, 132, 135, 137, 137, 135, 132, 131, 130, 129, 128, 126, 126, 124, 123, 121, 120, 120, 122, 123, 124, 126, 128, 129, 130, 130, 131, 131, 131, 130, 130, 130, 129, 129, 128, 126, 125, 125, 124, 124, 124, 124, 125, 126, 126, 128, 128, 128, 129, 129, 129, 129, 129, 128, 128, 128, 128, 126, 126, 126, 126, 126, 126, 126, 126, 126, 128, 127, 126, 128, 128, 128, 128, 128, 128, 128, 128, 126, 126, 126, 126, 126, 126, 126, 126, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126 }; byte snare[] = { 127, 215, 65, 212, 56, 102, 135, 122, 51, 201, 220, 46, 175, 80, 152, 95, 123, 116, 184, 155, 59, 122, 100, 161, 143, 173, 101, 155, 97, 73, 112, 98, 176, 96, 140, 77, 134, 109, 132, 149, 112, 149, 97, 161, 98, 151, 98, 155, 149, 112, 157, 103, 133, 106, 167, 97, 166, 108, 129, 124, 136, 146, 124, 136, 129, 150, 94, 130, 105, 141, 146, 128, 129, 99, 150, 121, 141, 99, 142, 116, 131, 114, 118, 143, 127, 143, 115, 144, 120, 137, 109, 129, 131, 139, 129, 113, 144, 119, 145, 117, 135, 129, 134, 136, 124, 130, 130, 139, 121, 136, 121, 132, 128, 127, 126, 122, 130, 126, 138, 120, 136, 122, 131, 123, 130, 128, 127, 128, 118, 132, 125, 131, 122, 131, 125, 131, 122, 126, 128, 126, 129, 121, 129, 123, 132, 129, 127, 131, 123, 128, 125, 130, 123, 131, 123, 128, 131, 129, 128, 126, 125, 124, 131, 121, 124, 129, 130, 126, 124, 126, 127, 130, 125, 126, 128, 126, 128, 126, 126, 126, 126, 125, 128, 126, 126, 126, 126, 126, 126, 125, 128, 126, 126, 126, 126, 126, 126, 126, 126, 128, 128, 126, 128, 126, 127, 126, 128, 125, 127, 128, 128, 126, 126, 128, 126, 126, 128, 128, 128, 128, 128, 126, 128, 126, 126, 128, 128, 126, 126, 128, 128, 126, 126, 127, 126, 128, 126, 126, 128, 128, 128, 126, 126, 126, 128, 128, 126, 126, 126, 128, 128, 126, 128, 128, 126, 126 }; byte hat[] = { 127, 128, 225, 217, 99, 38, 61, 153, 152, 144, 133, 73, 122, 144, 65, 188, 87, 170, 164, 111, 122, 151, 114, 88, 174, 77, 140, 92, 122, 141, 156, 124, 121, 123, 126, 133, 132, 139, 119, 120, 127, 141, 130, 122, 129, 127, 132, 121, 139, 118, 130, 131, 129, 132, 130, 134, 126, 128, 130, 126, 122, 132, 129, 127, 131, 126, 128, 127, 126, 125, 127, 125, 128, 125, 128, 128, 127, 127, 126, 127, 128, 128, 128, 127, 127, 127, 127, 127, 128, 127, 127, 126, 127, 127, 128, 127, 128, 126, 127, 128, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 126, 126, 128, 127, 126, 127, 126, 127, 127, 126, 127, 126, 127, 127, 127, 127, 127, 126, 127, 127, 127, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 126, 126, 126, 127, 127, 127, 126, 127, 127, 127, 126, 127, 127, 126, 127, 127, 127, 127, 127, 127, 126, 126, 126, 126, 126, 126, 126, 127, 127, 126, 127, 126, 126, 127, 126, 127, 126, 126, 126, 126, 126, 126, 126, 127, 127, 126, 127, 127, 127, 127, 126, 126, 127, 127, 127, 126, 127, 126, 127, 127, 127, 127, 127, 126, 126, 127, 127, 126, 127, 127, 127, 127, 126, 127, 127, 127, 127, 127, 127, 127, 127 }; byte crash[] = { 127, 128, 225, 217, 99, 38, 61, 153, 152, 144, 133, 73, 122, 144, 65, 188, 87, 170, 164, 111, 122, 151, 114, 88, 174, 77, 140, 92, 122, 141, 156, 124, 121, 123, 126, 133, 132, 139, 119, 120, 127, 141, 130, 122, 129, 127, 132, 121, 139, 118, 130, 131, 129, 132, 130, 134, 126, 128, 130, 126, 122, 132, 129, 127, 131, 126, 128, 127, 126, 125, 127, 125, 128, 125, 128, 128, 127, 127, 126, 127, 128, 128, 128, 127, 127, 127, 127, 127, 128, 127, 127, 126, 127, 127, 128, 127, 128, 126, 127, 128, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 128, 128, 126, 126, 128, 127, 126, 127, 126, 127, 127, 126, 127, 126, 127, 127, 127, 127, 127, 126, 127, 127, 127, 126, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 126, 126, 126, 127, 127, 127, 126, 127, 127, 127, 126, 127, 127, 126, 127, 127, 127, 127, 127, 127, 126, 126, 126, 126, 126, 126, 126, 127, 127, 126, 127, 126, 126, 127, 126, 127, 126, 126, 126, 126, 126, 126, 126, 127, 127, 126, 127, 127, 127, 127, 126, 126, 127, 127, 127, 126, 127, 126, 127, 127, 127, 127, 127, 126, 126, 127, 127, 126, 127, 127, 127, 127, 126, 127, 127, 127, 127, 127, 127, 127, 127 }; void setup() { DDRD = DDRD | B11111100; //In attempt to try and use an ATtiny, I got an error here } void loop() { for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar2[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar3[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar2[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar1[j]); } for(int j = 0; j < barLength; j ++) { playBeat(bar4[j]); } } // Playback Functions void playBeat(byte beat) { if(beat == 0) { for(int i = 0; i < 256; i ++) { delayMicroseconds(analogRead(0) + 1); } } else if(beat == 1) { playKick(); } else if(beat == 2) { playSnare(); } else if(beat == 3) { playHat(); } else if(beat == 4) { playCrash(); } delay(delayTime); } void playKick() { for(int i = 0; i < 256; i ++) { PORTD = kick[i]; delayMicroseconds(analogRead(0) + 1); } PORTD = 127; } void playSnare() { for(int i = 0; i < 256; i ++) { PORTD = snare[i]; delayMicroseconds(analogRead(0) + 1); } PORTD = 127; } void playHat() { for(int i = 0; i < 256; i ++) { PORTD = hat[i]; delayMicroseconds(analogRead(0) + 1); } PORTD = 127; } void playCrash() { for(int i = 0; i < 256; i ++) { PORTD = crash[i]; delayMicroseconds(analogRead(0) + 1); } PORTD = 127; }

Question by blinkyblinky 7 years ago  |  last reply 7 years ago


difference between microprocessor and microcontroller?

Question by samuel .j 8 years ago  |  last reply 7 years ago


Xbox 360? Answered

SO im getting a new slim 360 soon and i want to mod my current one. Is there any way to J-tag it since it has the 12xxxx series dash (something like that). I really dont want to fork out all that cash for a mod chip for RGH. Is there any way I can use traditional methods of wiring components to J-tag my box? Thanks,    Bud

Question by budhaztm 7 years ago  |  last reply 6 years ago


what is use of arc reactor?

Question by j-mack 8 years ago  |  last reply 8 years ago


how to easily win a chess match?

Question by bayblade 8 years ago  |  last reply 7 years ago


Knex Butterfly Knife with Real Blade!

I just made this really cool knex Butterlfy knife using J-Scaps idea and modify it to use a real blade! so here it is! i will post soon!

Topic by TeacherOfTheWays 11 years ago  |  last reply 10 years ago


LED Cube problems

I am having some minor (or perhaps major) difficulties with my 3x3x3 Led Cube. I have a program that i wrote that cycles the different 3x3 cross sections and in 3 of the cross sections there is one column of leds that will light up even though it is not commanded or supplied power. I also have a sort of kill all routine that runs after each level is dislplayed that sets every pin to low. in my configuration the problem pins are pins 8, 17, and 26. if anyone knows how to debug this or help in any way it would be much appreciated. Thanks! I have a video of the LED cube with the problems here and a sample of my program here // kill all routine for(i=2, i<15, i++) { digitalWrite( i, LOW); } // Level routines that have problems of LEDs lighting up when they shouldn't elseif (LVL_Num ==10) {   for(j=0, j< Repeat, j++)   {    LED_ON(3); LED_ON(6); LED_ON(9);     delay(5)    LED_OFF(3); LED_OFF(6); LED_OFF(9);     delay(1)    LED_ON(11); LED_ON(14); LED_ON(17);    delay(5)    LED_OFF(11); LED_OFF(14); LED_OFF(17);    delay(1)    LED_ON(19); LED_ON(22); LED_ON(25);    delay(5)    LED_OFF(19); LED_OFF(22); LED_OFF(25);   } } elseif (LVL_Num ==11) {   for(j=0, j< Repeat, j++)   {    LED_ON(1); LED_ON(4); LED_ON(7);     delay(5)    LED_OFF(1); LED_OFF(4); LED_OFF(7);     delay(1)    LED_ON(11); LED_ON(14); LED_ON(17);    delay(5)    LED_OFF(11); LED_OFF(14); LED_OFF(17);    delay(1)    LED_ON(21); LED_ON(24); LED_ON(27);    delay(5)    LED_OFF(21); LED_OFF(24); LED_OFF(27);   } } elseif (LVL_Num ==13) {   for(j=0, j< Repeat, j++)   {    LED_ON(1); LED_ON(2); LED_ON(3);     delay(5)    LED_OFF(1); LED_OFF(2); LED_OFF(3);     delay(1)    LED_ON(13); LED_ON(14); LED_ON(15);    delay(5)    LED_OFF(13); LED_OFF(14); LED_OFF(15);    delay(1)    LED_ON(25); LED_ON(26); LED_ON(27);    delay(5)    LED_OFF(25); LED_OFF(26); LED_OFF(27);   } }

Question by Lee_Smith 6 years ago


How to Manufacture and Use Your Own Book Binding Jig

Hi guys! The following topic is not generating the respective PDF. https://www.instructables.com/id/How-to-Manufacture-and-Use-Your-Own-Book-Binding-J/?download=pdf Tested on Windows 8.1 Chrome 33.0.1750.154 m clean installation on Mach 30, 2014.

Topic by padovan 5 years ago


Styer aug a1

Try making this while I'm in france.

Topic by j-chode! 10 years ago  |  last reply 9 years ago


Wheel Lenticular (Want to make an animated wheel)

Topic by Sarah C J 3 years ago  |  last reply 3 years ago


How can you check who featured your Instructable? Answered

?

Question by J@50n 9 years ago  |  last reply 9 years ago


What is the word for the wire cage over the cork in a champagne bottle?

F

Question by bobbie j 9 years ago  |  last reply 9 years ago


Text Pictures

This is a forum where you can poste any kind of picture you want, but only text pictures! The reason I created this forum is because I really think these text pictures are interesting. Anything is ok, nothing is bad, and throw everything you got at this forum. Thanks! :)

Topic by J Moneyman 9 years ago  |  last reply 9 years ago


can any one help me to find minor poject in core java?

Question by ashurockstar2012 7 years ago  |  last reply 7 years ago


can i plug the usb led light to the Altoid battery powered usb port?

J/c

Question by Spadesz69 9 years ago  |  last reply 9 years ago


what is the best primary pistol ?

For a knex war thats not oddammo

Question by Im_the_knex_god_hail_me 8 years ago  |  last reply 8 years ago



How to Run the &quot;PAL&quot; region games on &quot;NTSCJ&quot; Xbox 360?

I bought my xbox 360 from singapore(NTSC J).....but i live in india....i bought 2 PAL(India) region games...but that r not working dude......Give me some solution........i had done Googling but not found any easy method.........Thanks In Advance. '

Question by tushufighters 10 years ago  |  last reply 10 years ago


How do you read crease patterns?

Recently,  I saw a website by Robert J. Lang.  I really like origami,  so I looked up some of his diagrams, and, guess what?  They were all a bunch of crease patterns.  Right now those are pretty dang useless to me.  I was reading some of the entries to the site and i saw this: "A reasonable number of people now have the skill to “read” a crease pattern and fold the encoded form."  The second I saw that, I thought, "Are you mocking me?"   So, in other words, how do you "read" CP's as the great (just kidding) Robert J. Lang said?

Question by eulaliaaaa! 9 years ago  |  last reply 3 years ago


who killed j.f.k ... i think it was anthony sullivan?

 

Question by GianniMora 9 years ago  |  last reply 9 years ago



favorites

Arrrg srry i havent been on in a while. well any way whose your favorite charicter? Y.

Topic by michael J. caboose 10 years ago  |  last reply 9 years ago


Instructables at Conference on World Affairs at University of Boulder April 9-13, 2012

I'm speaking at the Conference on World Affairs at the University of Boulder this week in Boulder, CO.  The conference is free and open to the public, so if you are nearby I encourage you to attend.   I'll be speaking on the following panels.  Let me know if you can make it to any of these -- I love meeting the Instructables community in person! 1116 Creativity in the Arts and Sciences 9:00-10:20 on Monday April 9, 2012 ATLAS Black Box Panelists: Henry Butler Michael Fink Vivian Siegel Eric J. Wilhelm Moderator: Paul Bauman 1869 Extreme Living: Taking It to the Edge 4:30-5:50 on Monday April 9, 2012 Chemistry 140 Panelists: Arlene Blum William Nack James Tanabe Eric J. Wilhelm Moderator: Adam Chase 2612 DIY: Hipster Economy 2:00-3:20 on Tuesday April 10, 2012 ATLAS Black Box Panelists: Mark Frauenfelder Tom Preston-Werner Kiki Sanford Eric J. Wilhelm Moderator: Josie Heath 2768 New Business Models Powered by Technology 3:30-4:50 on Tuesday April 10, 2012 Visual Arts Complex 1B20 Panelists: Donna Morton Yolanda "Cookie" Parker Tom Preston-Werner Eric J. Wilhelm Moderator: Andrew Franklin 3714 The New Masculine 3:00-4:20 on Wednesday April 11, 2012 UMC East Ballroom Panelists: Tom Edmonds William Nack Howard Schultz Eric J. Wilhelm Moderator: Lew Harvey 4466 The Future of 3D 12:30-1:50 on Thursday April 12, 2012 ATLAS Black Box Panelists: Jim Emerson Michael Fink Eric J. Wilhelm Moderator: Patti Bruck 5116 More Technology, More Isolation 9:00-10:20 on Friday April 13, 2012 UMC West Ballroom Panelists: Maggie Koerth-Baker Tom Preston-Werner Jon Sinton Eric J. Wilhelm Moderator: Luke Beatty

Topic by ewilhelm 7 years ago  |  last reply 7 years ago





sidearm of mine

This is some handle loaded pistol I made today whilst I was in bed 'ill.' Yes, it occasionally jams, but the power makes up for that.

Topic by j-chode! 10 years ago  |  last reply 10 years ago


A good cheap bass guitar?

I play guitar, and (try to) play ukulele. I have wanted to play bass for a while now, and I now have a guitar center giftcard. I think I may get a squier j bass, but im not sure. What brand is good, but cheap? It cannot be over 200 dollars. New or used is ok. I just want to know what bass is good to learn on and is cheap. Below is a metallic red Squier j bass.

Question by freeza36 7 years ago  |  last reply 7 years ago


favorite bands of all time

What is your favorite band? what type of music is it and whats your favorite song of theirs?

Topic by michael J. caboose 10 years ago  |  last reply 1 year ago



Why are there so many instructables on making paper wallets? Answered

Is it a man thing? I am genuinely puzzled at the number of instructables out there devoted to paper wallets. Please explain someone!

Question by j-bar03 10 years ago  |  last reply 8 years ago



What is k2? Answered

Ive heard a lot about this drug and i just want to know what it is. i hear its like mary j? I do not intend on using this i would just like to know what it is.

Question by octopuscabbage 9 years ago  |  last reply 6 years ago


How can I see when my PRO membership expires?

Is there anyway to see the exact date and year your PRO membership will expire? Thanks!

Topic by J@50n 7 years ago  |  last reply 7 years ago


Will a leak in my muffler cause rpms to increase slightly ?

This happens in neutral as well as when in gear.  Only talking 2-300 rpms in each case.  Will be replacing muffler tomorrow regardless.

Question by BOB J 9 years ago  |  last reply 9 years ago


I need help with this code

Hello, I'm creating a PIR Sensor Alarm with Arduino. I'm using Arduino Uno, PIR Sensor, Breadboard, LED, Piezo Buzzer, TTL JPEG Camera, SD Card and SD Card Module (Breakout Board) I tested my code and it didn't give me any errors. However, the LED and the Buzzer are on all the time, my idea is to have them on once the PIR Sensor detects motions. I know that I'm having problem with the code. Therefore, I'd appreciate it so much if someone could find out which parts of my code should I change. ---------------------------- #include #include #include int pirPin = 7; int ledPin = 8;                // choose the pin for the LED int pinSpeaker = 10;           //Set up a speaker on a PWM pin (digital 9, 10, or 11) int minSecsBetweenEmails = 60; // 1 min long lastSend = -minSecsBetweenEmails * 1000l; byte ZERO = 0x00; byte incomingbyte; SoftwareSerial mySerial(2,3);          // Set Arduino pin 2 and 3 as softserial long int a=0x0000,j=0,k=0,count=0,i=0; uint8_t MH,ML; boolean EndFlag=0; File  myFile; void SendResetCmd(); void SetBaudRateCmd(); void SetImageSizeCmd(); void SendTakePhotoCmd(); void SendReadDataCmd(); void StopTakePhotoCmd(); void setup() {   pinMode(pirPin, INPUT);   pinMode(ledPin, OUTPUT);      // declare LED as output   pinMode(pinSpeaker, OUTPUT);   Serial.begin(9600);   Serial.begin(115200); while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only } mySerial.begin(38400); Serial.print("Initializing SD card..."); // On the Ethernet Shield, CS is pin 4. It's set as an output by default. // Note that even if it's not used as the CS pin, the hardware SS pin // (10 on most Arduino boards, 53 on the Mega) must be left as an output // or the SD library functions will not work. pinMode(10, OUTPUT); if (!SD.begin(10)) { Serial.println("initialization failed!"); return; } Serial.println("initialization done."); } void loop() {   long now = millis();   if (digitalRead(pirPin) == HIGH)   {     digitalWrite(ledPin, HIGH);  // turn LED ON     playTone(300, 160);     delay(150);     if (now > (lastSend + minSecsBetweenEmails * 1000l))     {       Serial.println("MOVEMENT");       lastSend = now;     }     else     {       digitalWrite(ledPin, LOW); // turn LED OFF       playTone(0, 0);       delay(300);         Serial.println("Too soon");     }   }   delay(300); } // duration in mSecs, frequency in hertz void playTone(long duration, int freq) {     duration *= 1000;     int period = (1.0 / freq) * 1000000;     long elapsed_time = 0;     while (elapsed_time < duration) {         digitalWrite(pinSpeaker,HIGH);         delayMicroseconds(period / 2);         digitalWrite(pinSpeaker, LOW);         delayMicroseconds(period / 2);         elapsed_time += (period);     } byte a[32]; int ii; SendResetCmd(); delay(4000);                            //Wait 2-3 second to send take picture command SendTakePhotoCmd(); while(mySerial.available()>0) {   incomingbyte=mySerial.read(); } myFile = SD.open("pic.jpg", FILE_WRITE); //The file name should not be too long while(!EndFlag) {   j=0;   k=0;   count=0;   SendReadDataCmd();   delay(200); //250 for regular   while(mySerial.available()>0)   {      incomingbyte=mySerial.read();     k++;     if((k>5)&&(j<32)&&(!EndFlag))     {      a[j]=incomingbyte;      if((a[j-1]==0xFF)&&(a[j]==0xD9))     //tell if the picture is finished      EndFlag=1;      j++;     count++;     }   } for(j=0;j { if(a[j]<0x10) Serial.print("0"); Serial.print(a[j],HEX);           // observe the image through serial port Serial.print(" "); } for(ii=0; ii myFile.write(a[ii]); Serial.println(); i++; } myFile.close(); Serial.print("Finished writing data to file"); while(1); } void SendResetCmd() { mySerial.write(0x56); mySerial.write(ZERO); mySerial.write(0x26); mySerial.write(ZERO); } void SetImageSizeCmd() { mySerial.write(0x56); mySerial.write(ZERO); mySerial.write(0x31); mySerial.write(0x05); mySerial.write(0x04); mySerial.write(0x01); mySerial.write(ZERO); mySerial.write(0x19); mySerial.write(0x11); } void SetBaudRateCmd() { mySerial.write(0x56); mySerial.write(ZERO); mySerial.write(0x24); mySerial.write(0x03); mySerial.write(0x01); mySerial.write(0x2A); mySerial.write(0xC8); } void SendTakePhotoCmd() { mySerial.write(0x56); mySerial.write(ZERO); mySerial.write(0x36); mySerial.write(0x01); mySerial.write(ZERO); } void SendReadDataCmd() { MH=a/0x100; ML=a%0x100; mySerial.write(0x56); mySerial.write(ZERO); mySerial.write(0x32); mySerial.write(0x0c); mySerial.write(ZERO); mySerial.write(0x0a); mySerial.write(ZERO); mySerial.write(ZERO); mySerial.write(MH); mySerial.write(ML); mySerial.write(ZERO); mySerial.write(ZERO); mySerial.write(ZERO); mySerial.write(0x20); mySerial.write(ZERO); mySerial.write(0x0a); a+=0x20; } void StopTakePhotoCmd() { mySerial.write(0x56); mySerial.write(ZERO); mySerial.write(0x36); mySerial.write(0x01); mySerial.write(0x03); } --------------------------- Thanks a lot!

Topic by fhussein1 5 years ago  |  last reply 4 years ago


Inventor of Pringles Can Buried in Pringles Can

The inventor of the Pringles can, Frederic J Baur, passed away recently and was partially buried in a pringles can, his most prized invention.

Topic by randofo 10 years ago  |  last reply 10 years ago


Favorite Music

This is a forum where people can talk about their favorite songs and bands. If you've had a bad day, you can also say what's been buggin you and you won't be judged.

Topic by J Moneyman 10 years ago  |  last reply 7 years ago


knex

Im selling my knex. i dont want it £30-£50'd be nice :) only people in the midlands in england please it weighs about 9kg lemme know. slow to respond as i'll be on holiday tomorrow.

Topic by j-chode! 9 years ago  |  last reply 1 year ago


How do you type?

Well my computer teacher says always to keep your hands in the home row position(look at picture.) and not to do move your fingers around just to move them up and down to the according key. By the way the home row is.. a s d f g h j k l ; Now is this a better way to type or just to move your fingers around. another explanation: he says to keep your fingers on a s d f g h j k l ; and then curl them down or up to hit the key. Hopefully the pictures will clear it up.

Topic by Easy Button 11 years ago  |  last reply 11 years ago


I have a white rectangle in my speaker box but don't know what it is. Please Help!! Answered

I need to get this replaced but i don't know what it is. It says 10W 8r2 j

Question by demonspawnedangel 8 years ago  |  last reply 8 years ago


what is the best knex gun?

All in the title

Question by Im_the_knex_god_hail_me 8 years ago  |  last reply 5 years ago


SR- 47 gun

I am in the process of making a new gun. It may not be fantastic, but I know with yalls support it might be near it. It is the American version of the AK 47. It resembles the M4. I'll post some pictures, and right now, I'm working on the stock. I think that dutchwarlord's M4 stock is pretty cool. It doesn't matter if this is a working model or not. I really want to get this up and made. Thank you for reading this and I look forward to yalls suggestions. If anyone wants to help me build this gun, just PM me.

Topic by J Moneyman 10 years ago  |  last reply 9 years ago


ROTFLOL!! Yahoo Mail Vid

OK, sorry about forcing this on you, but it was just TOO FUNNY, Frodo and Gandalf text there way through LOTRVideocan not find yahoo video ID: https://us.ard.yahoo.com/SIG=14ureerp4/M=341232.12015912.12561458.6055752/D=regst/S=150001465:R2/Y=YAHOO/EXP=1207796968/L=.ITu8NG_XHKpuyVpR_1oogEBRF2HA0f9aMgADikv/B=KnQAQUSOxJE-/J=1207789768955420/A=5309423/R=0/SIG=11f551dpe/*http://overview.mail.yahoo.com/featured_video[https://us.ard.yahoo.com/SIG=14ureerp4/M=341232.12015912.12561458.6055752/D=regst/S=150001465:R2/Y=YAHOO/EXP=1207796968/L=.ITu8NG_XHKpuyVpR_1oogEBRF2HA0f9aMgADikv/B=KnQAQUSOxJE-/J=1207789768955420/A=5309423/R=0/SIG=11f551dpe/*http://overview.mail.yahoo.com/featured_video link to vid if embedding didn't work]

Topic by KentsOkay 11 years ago  |  last reply 11 years ago


How can I program my computer to type data from notepad? Answered

Basically, I need to type data from a notepad file to a program that only input data that you type from a key broad. The hardiest thing is that the data is created by excel so it look something like this: A B C D E F G H I J K L But I need it to type like this: A¶B¶C¶D¶E¶F¶G¶H¶I¶J¶K¶L¶ So my question is: is it possible to program my computer to do so or it is just impossible?

Question by Shizen 5 years ago  |  last reply 5 years ago