Show Posts
Pages: [1] 2
1  Using Arduino / Audio / Reading "beats" from a Phone Piezo pin port on: February 26, 2014, 03:58:10 am

I would like to read the beat from a port of a phone where it was a piezo attached ( ringtones one ) and convert to a "comand" , for example:

if i call ringtone1 = turn on relay
if i send sms ringtone2= turn off relay


Is there any way that this reading sohould be done in particular? There is any sketch that could be usefull?

Thanks.
2  Using Arduino / Project Guidance / Re: TVOut slows the millis() function on: November 07, 2013, 08:35:31 pm
What about using 2 arduinos 1 for the program the other for the tvout comunication?

I have a timer and i want that to be printed on screen.
3  Using Arduino / Project Guidance / TVOut slows the millis() function on: November 01, 2013, 07:27:12 pm

What steps will reproduce the problem?
1.  If i add to setup:
  TV.begin(PAL,120,96);
  TV.select_font(font6x8);
millis slows down , even if i output the millis() in serial and not in TV.out
2. If i remove
  TV.begin(PAL,120,96);
  TV.select_font(font6x8);
millis() counter runs fine
 


What is the expected output? What do you see instead?
I should see milliseconds flowing, i see a slower version of millisecond counter.

What version of the product are you using? On what operating system?

Windows 7, Arduino 1.0.5 , last version of the library
4  Using Arduino / Displays / Re: Cant upload Bitmap on 7920 on: October 26, 2013, 06:56:43 pm
You could use http://code.google.com/p/u8glib/ which supports uncompressed XBM files (can be exported from gimp)

Oliver

u8glib uploading speed is ridicolous.
5  Using Arduino / Displays / Cant upload Bitmap on 7920 on: October 25, 2013, 08:48:55 pm
Do you know the proper way to upload a bmp to a 7920?

I tryed with LCD12864 library from DFROBOT, but without any good result.

With LCD Assistant i  got random line stripes.
With image convertor if i upload the sample image the upload is OK, if i upload my image the image quite good but not on screen center and in someway disassembled.

Do you know any sure metod to convert and upload bmp to this LCD?
6  Using Arduino / Displays / Re: Display vs Monitor on: October 23, 2013, 09:41:00 pm
Quote

Yeah that's a display without a driver smiley-sad
7  Using Arduino / Displays / Display vs Monitor on: October 22, 2013, 06:27:39 pm
I found out the TVOut library, and i just got shoked from the easyness of the electronic behind this and the smoothnes of view.
So my question is, why even considering using a display? Is there any cons that monitor has that i am ignoring? Considering a 128x64display costs 15€ or more, and a lowcost car monitor 7-10€ is there anything that i'm missing here? Let me know.

http://youtu.be/WlBXiZpuncg
8  Using Arduino / General Electronics / Re: Electrical Help for a Push-pull solenoid on: October 13, 2013, 06:24:20 am
I used a TIP132 at the end, i found one in my scavage box, it's working good, the pushing system is working perfectly smiley-wink
9  Using Arduino / General Electronics / Re: Electrical Help for a Push-pull solenoid on: October 11, 2013, 08:24:37 pm
I think you'll find that the +/- is used to denote "approximately"  rather than "logic + and logic -"  -  but I might be wrong

When I was a student (more years ago than I care to remember) we used a "wiggly equals" sign to denote approximation ≈
Maybe you are confusing with the "error" thing , but here is not 20 士1 , it's just 士20.

In fact If you look here
 http://it.rs-online.com/web/c/semiconduttori/discreti/transistor-mosfet/

You can find lot of transistors with 15v -5v value. So i think is intended the range. But i'm not sure actually.


Quote
Can you link to the packs of mosfets? Or at least provide the part numbers? It may be that the P-channel ones are in SMD packages and the N-channel ones are in TO220, which tends to cost more.



This is the code of the mosfet:
NTD25P03LT4G it's not an SMD.

btw

The irfz44n is rated 55V , 49A, 士10 , Rds(on)  passed 2volts ( based on grapghic )
http://www.irf.com/product-info/datasheets/data/irfz44n.pdf


So it should fit my case right?
10  Using Arduino / General Electronics / Re: Electrical Help for a Push-pull solenoid on: October 11, 2013, 05:24:17 am
It was just a price matter. The P channel was cheaper.

Then you are not looking at mosfets with similar specifications. N-channel mosfets are generally cheaper than similar P-channel mosfets.

So maybe i'm looking wrong, i pay 16€ shipped for a pack of 100 p-mosfets like those with -5v Vgs , 25amp, 30volt. I pay almost the double for thre N kind with same specifics.

I'm looking for Vgs 5v , not more not less. Almost 15amp , and obv at least 12v am i looking wrong? Could someone tell me the near-right specs? The resistence of the coil is 7ohm

Noob question alert:
If a Vgs mosfet is rated Vgs = (+/-) 10 , it means it will be activated by the range -10 , 0 / 0, +10 , or it need the min and max value of -10  / +10?
11  Using Arduino / General Electronics / G3TR Transistor Tester Identifier on: October 10, 2013, 06:39:27 pm
I did a research on the forum about the G3TR but i have found notthing

http://giuseppetalarico.wordpress.com/tag/bipolar-junction-transistor/

I think it's a preatty interessing project. It sense and identify the transistor connected to the "shield"
just 2x10k res are needed.

Here is mine smiley-wink  

https://www.dropbox.com/s/77aov9fvpnp6n3y/2013-10-11%2001.39.30.jpg


Since the owner saved the sketch is in PDF ( -.- )  , extracting it properly is quite annoying. So i will copypaste the sketch here.

Enjoy:

Code:


/******************************************************************************

 * filename: g3tr.pde
*
* G3TR means: Giuseppe Talarico Transistor Type Recognizer
*
* This version is for Arduino
*
* Just only two 10K resistors and a serial terminal program are needed to implement
* a simple and powerfull digital Transistor Tester.
* The circuit allows to test any type of transistor ( npn,pnp, n-channel, p-channel )
* both low or High Power.
* The program tell us if the transistor under test is working or not and which is his type
* for example: NPN-BJT, PNP-BJT, NCHANNEL-MOSFET, PCHANNEL-MOSFET.
* The program test diode too and tell us where the Anode is attached ( RED CABLE or BLACK CABLE)
* Devices broken or shorted are decoded too.
*
*
* date: 6 aprile 2012
* Author: Giuseppe Talarico
* giuseppetalarico.wordpress.com
*
*
*****************************************************************************/
/*

* G3TR Schematic:
*
*
* --------------------------------------------------------------> to GATE (BASE)
* |
* | ----------------------*
| | Arduino |
* | | |
* | -------| |
* --| 10K |--------|D9 |
* | -------| |
* | | D10 |------------------> to SOURCE (EMITTER)(A)(K)
* | | | -------*
---------------->|D8 D11 |---| 10K |-------> to DRAIN (COLLECTOR)(K)(A)
* | | -------- |
* ____/ ________|D6 | |
* | | | |
* ---| | |
* | D7 |<---------------*
-----------------------
*
*/
enum {FALSE,TRUE};

//------------------------- hardware abstractions ------------------------


// constants are used here to set pin numbers:


const byte BTN1 = 6; //Button Switch


const byte DRAIN_IN = 7; // if n-channel (npn) this bit is !(R_GATE_OUT)
const byte BJT_MOSFET_IN = 8; // if DIGITAL PIN 8 = L the devices is a MOSFET otherwise the devices is a BJT


const byte R_GATE_OUT = 9; // DIGITAL PIN 9 gate or base driver
const byte SOURCE_OUT = 10; // DIGITAL PIN 10 L --> N-Channel select, H --> P-channel select
const byte R_DRAIN_OUT = 11; // if DIGITAL PIN 11 = H then NPN else PNP


//----------------- constant String -----------------------------------------


const char title[] ="\n\n\r* Transistor Type Recognizer *\n\n\r" ;
const char prompt[] ="\n\rG3TR> ";






//----------------------- global variables ---------------------------------

 
boolean recognized;

//---------------------------------------------------------------------------


void setup()
{

 Serial.begin(9600);

//configure outputs:

 pinMode(R_GATE_OUT, OUTPUT);
pinMode(SOURCE_OUT, OUTPUT);
pinMode(R_DRAIN_OUT, OUTPUT);


//configure inputs:

 pinMode(BJT_MOSFET_IN, INPUT);
pinMode(DRAIN_IN, INPUT);


 pinMode(BTN1, INPUT);
digitalWrite(BTN1,HIGH); // internal pull-up ON


 }

//================================= M A I N L O O P =====================================

void loop()
{

 recognized=FALSE;

 Serial.println(title);
Serial.print(prompt);


while (TRUE)
{
if (recognized)
{
recognized=FALSE;


while (digitalRead(BTN1)==1); // wait BTN1 pressed
delay(200);
Serial.print(prompt);


}

if(digitalRead(BTN1)==0) // wait BTN1 pressed
{


recognized=FALSE;
try_npn_nchannel();


if (!recognized)
{
try_pnp_pchannel();


if (!recognized)
{
try_diode();


if (!recognized)
{
try_short();


if (!recognized)
try_broken();
}
}
}





 }

 }//end while

} // end loop

//----------------------- g3tr procedures ---------------------------------


void try_npn_nchannel(void)
{

//Serial.println("try npn/N-channel...\n");
// Polarize the transistor under test like NPN or NCHANNEL
digitalWrite(R_GATE_OUT, HIGH); // gate (base) -------> H
digitalWrite(R_DRAIN_OUT, HIGH); // drain (collector)--> H
digitalWrite(SOURCE_OUT, LOW); // source (emitter) --> L


 delay( 20 ); // msec

if(digitalRead(DRAIN_IN)== 0)
{


// may be npn or n-channel
digitalWrite(R_GATE_OUT,LOW); // gate (base) -------> L
delay(20);
if(digitalRead(DRAIN_IN)!=0)


{

//It is npn or n-channel

 recognized =TRUE;

// now it decides for npn-bjt or nchannel-mosfet
digitalWrite(R_GATE_OUT,HIGH); // gate (base) ------ > H
delay(20);
if( digitalRead(BJT_MOSFET_IN)!= 0)


 Serial.println(" N-CHANNEL MOSFET");

else

 Serial.println(" NPN BJT");
}
}


}//end try_npn_nchannel

//----------------------------------------------------------------------------------------------------


void try_pnp_pchannel(void)
{

//Serial.println("try pnp/P-channel...\n");
// Polarize the transistor under test like PNP or PCHANNEL
digitalWrite(R_DRAIN_OUT,LOW); // drain (collector)---> L
digitalWrite(SOURCE_OUT, HIGH); // source (emitter) ----> H
digitalWrite(R_GATE_OUT, HIGH); // gate (base) -------> H
delay(20);
if( digitalRead(DRAIN_IN)==0)


{

// may be pnp or p-channel
digitalWrite(R_GATE_OUT, LOW); // gate (base) --> L
delay(20);
if( digitalRead(DRAIN_IN)!=0)


 {

//It is pnp or p-channel

recognized =TRUE;

// now it decides for pnp-bjt or p-channel mosfet
digitalWrite(R_GATE_OUT, LOW); // gate (base) --> L
delay(20);
if( digitalRead(BJT_MOSFET_IN)== 0)


 Serial.println("P-CHANNEL MOSFET");

else

 Serial.println("PNP BJT");
}
}






}//end try_pnp_pchannel()

//---------------------------------------------------------------------------------------


void try_diode(void)
{

//Serial.println("try DIODE...");
//Polarize the DIODE under test
digitalWrite(R_DRAIN_OUT, HIGH); // Anode ---> H
digitalWrite(SOURCE_OUT, LOW); // Catode---> L
delay(20);


if(digitalRead(DRAIN_IN)==LOW)
{


//may be a DIODE; to verify, invert Polarization
digitalWrite(R_DRAIN_OUT, LOW); // Anode ---> L
digitalWrite(SOURCE_OUT, HIGH); // Catode---> H


 delay(20);
if( digitalRead(DRAIN_IN) ==LOW)


{
recognized =TRUE;
Serial.println("DIODE [Anode on RED cable]");


}
}
if (!recognized)
{


//Polarize the DIODE under test in a different way
digitalWrite(R_DRAIN_OUT, LOW); // Catode--> L
digitalWrite(SOURCE_OUT, HIGH); // Anode---> H
delay(20);
if(digitalRead(DRAIN_IN)==HIGH)


{

//may be a DIODE, so invert Polarization
digitalWrite(R_DRAIN_OUT,HIGH); // Catode --> H
digitalWrite(SOURCE_OUT,LOW); // Anode --> L
delay(20);
if( digitalRead(DRAIN_IN)==HIGH)


 {
recognized =TRUE;
Serial.println("DIODE [Anode on BLACK cable]");


 }
}
}


}//end try_diode()

//-----------------------------------------------------------------------------------------


void try_short(void)
{

 digitalWrite(R_DRAIN_OUT, HIGH); // H
digitalWrite(SOURCE_OUT, LOW); // L
delay(20);


if( digitalRead(DRAIN_IN)==0)

 {
digitalWrite(R_DRAIN_OUT, LOW); // L
digitalWrite(SOURCE_OUT, HIGH); // H
delay(20);
if(digitalRead(DRAIN_IN)!=0)


{
recognized =TRUE;
Serial.println("DEVICE SHORTED");


}
}
}//end try_short();

//---------------------------------------------------------------------------------


void try_broken(void)
{

 digitalWrite(R_DRAIN_OUT, HIGH); // H
digitalWrite(SOURCE_OUT, LOW); // Ldelay(20);
if( digitalRead(DRAIN_IN)!=0)

{
digitalWrite(R_DRAIN_OUT, LOW); // L
digitalWrite(SOURCE_OUT, HIGH); // Hdelay(20);
if(digitalRead(DRAIN_IN)==0)

 {
recognized =TRUE;
Serial.println("DEVICE BROKEN");

}
}


}//end try_broken()


12  Using Arduino / General Electronics / Re: Electrical Help for a Push-pull solenoid on: October 10, 2013, 01:58:21 pm

It was just a price matter. The P channel was cheaper.
13  Using Arduino / General Electronics / Re: Electrical Help for a Push-pull solenoid on: October 10, 2013, 07:14:29 am
I know the method of capacitor discharge but i have a really small compartment to insert electronics, otherwise i really dont need all that pushing power. Thanks for the link.



Quote
Hi, how often does the hitter have to operate and how long are you pulsing it to make it operate.
Tom... smiley

It gives a really hard punch so i think just one hit it's far sufficient, btw to be sure i can operate the solenoid just twice or three time with a delay of 2 sec or more, just to be sure, also operating the solenoid with a too fast trigghering or a "long push"  will cause the solenoid to heat up , and we dont want this to happen  smiley



What about this mosfet it would be fine?

Waht about this, is rated 30v , 25amp , logic level P channel. ( sorry the link was missing in the last post )

http://www.onsemi.com/pub_link/Collateral/NTD25P03L-D.PDF
14  Using Arduino / General Electronics / Re: Electrical Help for a Push-pull solenoid on: October 08, 2013, 07:24:07 pm
Waht about this, is rated 30v , 25amp , logic level P channel.
15  Using Arduino / General Electronics / Re: Electrical Help for a Push-pull solenoid on: September 17, 2013, 02:30:36 pm
the npn transistor is the bdx53C

Darlington transistors like that one are #4 in my list of things not to use. See http://miscsolutions.wordpress.com/2011/10/16/five-things-i-never-use-in-arduino-projects/ for why. Use a logic level N-channel power mosfet instead, it will run much cooler. And connect a flyback diode in parallel with the solenoid as Lefty says.

Very interessing, i will try to use a IRF540N
Pages: [1] 2