I'm looking to use the LM386amp with a sensitive mic with automatic gain From 20 to 200. The output will need to have enough single for the next stage,the HT9170 chip to pick-up the single. Does anyone have a working schematic that i could use for my application. With the LM386 amp.And how do i get a automatic gain from 20 to 200 with low noise.
I didn't use the circuit you posted. it looks to involved to make. I used a simpler circuit with out the AGC on google images.HT9170.
It's the frist circuit. I didn't know how to post it here.Anyway.
I like to hook up the ouput to that circuit to a Bluetooth module and send the numbers that are decoded on the output to another dongle connected to my computer to see which numbers were decoded. Do you have any ideas how i could make this work. I do not know how to program a micro or connect this to the ht9170.can you help me.
No the circuit wasn't complicated.I wanted a circuit that used less parts for the audio circuit part of the pre-amp.I don't think I'll need a AGC.
The only hard part i is the programming.I thought i would get help on here. with the programming part.How would i connect the micro to the ht9170 output and the bluetooth module.I will be using 3.3V for my power supply.Sparkfun.com sells bluetooth modules which one will work right for me.I was try to locate this bluetooth module AUBTM-20. But? Can't find to purchase it here in the USA. What is a compatible alternative module that sparkfun sells. from sparkfun.
Can't find this Arduino bluetooth here in the states.And its expensive.About $120 Is there any other bluetooth i could get that will work for me.And less expensive.
Also? I been having no luck in calculating the Steering control circuit on page 7 in the datasheet for the HT9170 decoder.There's a formula but i don't understand it on page 6or9 figure 5 in the datasheet . Can you or someone,who can explain as simple as possible for calculating the steering controlcircuit on pins 16.17.and 18. My power supply is 3.6VDC. Link to Datasheet.
Here's a link showing how someone got the bluetooth module connected to their phone.
You'd need to connect the bluetooth module's Tx, Rx and ground lines to the Arduino and then write some code on the Arduino so it reads the 5 digital lines from the HT9170 and sends a character to the bluetooth module every time the data-valid pin goes high.
I would just start with the example values of 300 K Ohm and 0.1 microfarad for the steering controls. That's a pretty specific part of the circuit for attempting to transmit data through tones as fast as possible, and you aren't trying to do that really.
I would connect DV to pin 6 The HT9170 data output pins are 11,12,13 and 14 Connect them to the Arduino "Pins" 2,3,4 and 5 Then use the PinMode(2,INPUT) ( also 3,4 and 5) Then use the DigitalRead(2) (also 3,4 and 5) to read the four digital signals coming from the decoder.
This website is not the best place to post code, but here's something to get you started.
I copied it out of the Arduino examples.
How many of the examples have you gotten working? I would start with the blinking LED and then move on to the button press LED one next.
Then maybe move on to this.
void setup() { // initialize some pins as an input: pinMode(2, INPUT); //Data 0 pinMode(3, INPUT); //Data 1 pinMode(4, INPUT); //Data 2 pinMode(5, INPUT); //Data 3 pinMode(6, INPUT); // The data valid input // initialize serial communication at 9600 bits per second: Serial.begin(9600); }
void loop(){ // read the state of the data valid bit dataValid= digitalRead(6);
if (dataValid== HIGH) { data = 0; data |= digitalRead(5); data <<= 1; data |= digitalRead(4); data <<= 1; data |= digitalRead(3); data <<= 1; data |= digitalRead(2); Serial.println(data);
I try what you stated in your last post. I've don't the Blink LED and The Press LED. On my arduino pro mini.I upload the sketches and they both worked.The last code you suggested did not work at all.For some reason it didn't. I can't figure out why it just didn't work.
Here what i want to do. As i been mentioning thoughout this thread.
1.Pick-up tones with my audio amp. 2.The 9170 Decoder Decoders these code. 3.On output of the 9170 chip those signals of the decoder is decoder on the aduino pro mini. 4. Then a code sends these codes to an RN-41 bluetooth MODULE. 5 Bluetooth sends it to a phone where it could see this data on a app called Blueterm.
But how do i do this with arduino sketch code. And make it work correctly. Can you help with a code. I do not know how to write a code for this. 5 The