Custom Search

Author Archives: Justin

Experiments in Home Audio (lm386)

0
Filed under audio, electronics, General, Hardware
Tagged as , ,

I really needed a quick amplifier to power a few book shelf speakers. Looking around my ic bin, I found a few lm386s.
Next I pulled the rest of the parts (1x perf board,  2x ic sockets,  2x 100uf caps, 2x 5k pots,  some wires,  and a few odds and ends) 

Put all this in a blender, bake for few hours and this is what you get.

image

image

image

The results are,  its not  a bad sound. some noticeable distortion at higher levels. More improvements can be made, like changing the output caps to bigger ones,  adding a gain selector….etc.
But what I have now works. Next a class A amp and other projects.

Almost Time to Test.

0
Filed under electronics, Hardware

image

Most of the motor wiring done. tomorrow I will test the motors and to make sure there are no shorts or other issues.

WP mobile app test & update

0
Filed under electronics, General, Hardware, MSP430

Hopefully this will help me stay motivated to keep posting. my current side project

image

My motor driver should be done this weekend. 

image

I will return shortly

0
Filed under Uncategorized

I’m just on a short break from blogging at this moment, I have been working on getting my car fixed (i am doing the work myself) Adjusting to my new job.

Its tough getting my schedule back to normal. I have been working nights for 2 years with only four 10 hour shifts. Now i am back on a normal 9-5 5 days a week.
So stay tuned I will be back very shortly

Thanks for reading :)

msp430 BMP counter, its getting there

0
Filed under Hardware, MSP430

Doing some more testing on my BPM counter,  the beat detection circuit is getting closer and closer.

 

Using NightBass “Sky Ride extended mix(A1)”  I have tested the circuit and finally have some results.  See video below.

The signal is coming from my turntable, through the mixer, and into my low pass filter, then the signal is read by the SD16, every time the threshold is reached the LED is turned on.

 

Test Code

/*****************************************************************************/
//Author- Justin Solarski
//Copyright 2011 justinstech.org
#include
/*****************************************************************************/
volatile unsigned int results = 0;
/*****************************************************************************/
/*****************************************************************************/
void main(void) {
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
//basic clock settings
DCOCTL = CALDCO_1MHZ;
BCSCTL1 = CALBC1_1MHZ;
BCSCTL2 |= DIVS_3; //divide smclk/8 125000Hz
//GPIO setup
P2DIR |= BIT7;
P1DIR |= BIT6;
//sd16 settings
SD16CTL = SD16REFON + SD16SSEL_1; // 1.2V ref, SMCLK
//SD16CTL |= SD16XDIV_3; //
SD16INCTL0 = SD16INCH_0; // A1+/- P1.2
SD16CCTL0 = SD16IE; // 256OSR, bipolar offset, interrupt enable
SD16AE = SD16AE0; // P1.0 A0+, A0- = VSS
SD16CCTL0 |= SD16SC; // Set bit to start conversion
_BIS_SR(LPM0_bits + GIE);
}
/*****************************************************************************/
// SD16 ISR
#define THRSHMAX 0xc000 // not used yet
#define THRSHMIN 0x4000 // not used yet
__attribute__((interrupt(SD16_VECTOR)))
void Sd16_Isr(void){ // 0000 - FFFF -- 8000 = halfway point or 1.2V
//P1DIR ^= BIT6;
results = SD16MEM0;
if (results < 0x4000) { //results is less then 0x4000 P1OUT |= BIT6; } else if ( results > 0xc000) { // results greater then 0x9000
P1OUT |= BIT6; }
else { P1OUT = 0; }
}

the code needs to be tweaked a little more to show better results, maybe adding a adjustable threshold would be nice. only a few more things to finish, like calculations of BPM and the 3x 7 segment display. hopefully it will be the majority will be finished sometime this next week, and then clean up and find a nice project box for everything.

once i get the calculations done I will do a bigger write up, explaining how it all works…….Please let me know what you think

Thanks
Justin