wearable-microphone-jamming icon indicating copy to clipboard operation
wearable-microphone-jamming copied to clipboard

Materials and wiring all it up

Open digilander98 opened this issue 5 years ago • 61 comments

Hi, is possible to have needed materials list and wiring schematics?

Thank you so much!

digilander98 avatar Feb 21 '20 13:02 digilander98

I've spent a lot of time on trying to figure out the exact hardware that was used and here is what i got so far:

I think there's also a charging circuit and a charging port that hasn't been mentioned. At least it looks like there is something like a micro USB port in the video. The charging circuit could be something like this. But I'd probably ditch the step up converter for a 2 in 1 board like this that does both charging and stepping up to 5V. To save even more space you could desolder the USB A port. Then I would try to replace the Amplifier board with something cheaper like this and maybe the signal generator could also be replaced by something cheaper like this. Finally I would consider swapping the very pricey Adafruit Trinket for an Arduino Micro clone. Well, maybe one more thing: You might be able to use a nicer looking button with a 5V LED integrated instead of the aforementioned LED+resistor+button combo.

It would be great to have input from @y-x-c on all this because if we don't get the exact same components, they may not fit into the 3D printed enclosure. Thanks a lot for this awesome work btw!

T-vK avatar Feb 25 '20 16:02 T-vK

Thank you sir

digilander98 avatar Feb 26 '20 07:02 digilander98

@T-vK thanks a lot, I managed to get some modules that you listed as alternatives.

If you can could you provide some wiring schematics insights please

pracdaske avatar Mar 04 '20 02:03 pracdaske

Once my parts arrive, I'll figure out how to wire them up and post my results here. But looking at the current situation in China, it may take more than a month until I receive my orders...

T-vK avatar Mar 04 '20 08:03 T-vK

Why don t use an arduino nano clone?

digilander98 avatar Mar 04 '20 22:03 digilander98

And what about this: https://a.aliexpress.com/_BOV2vj

digilander98 avatar Mar 04 '20 23:03 digilander98

@T-vK HI, I have a little question about

I've spent a lot of time on trying to figure out the exact hardware that was used and here is what i got so far:

* 23x [NU25C16T-1 aka TCT40-16T](https://www.aliexpress.com/item/32258563531.html)

TCT40-16T have center frequency at 40kHz (on data sheet) NU25C16T have center frequency at 25kHz

I doubt this two can be replace from each other (?)

I'm not a electronics expert, but I make some test on 40kHz transducer from a ultrasonic sensor and it works fine to jam the microphone (with limit range about 10cm)

may be 40kHz doesn't have the same effect with 25kHz or may need to change the code from the project.

SCWhite avatar Mar 05 '20 04:03 SCWhite

@digilander98 I think the Arduino Micro clone is closer to the Trinket and I prefer micro USB over mini USB. Besides that, according to the paper the code was written for the ATMEGA32U, so it may not work on the nano. What do you mean by "what about this"? It's the same board I linked to in my post, just a few cents cheaper.

@SCWhite I'm assuming they are the same because of offers like this: https://www.ebay.com/itm/272708217220

But I could be wrong, that's why I was asking @y-x-c for input.

At what volume did you get a 10cm range btw? I think in the paper it was mentioned that it was running at almost 100 decibels.

T-vK avatar Mar 05 '20 12:03 T-vK

For the arduino i think that the code is small and get right ports if different from the trinket will not be a huge problem. Differences from one arduino version to another are in size, clock mhz, memory space and ports capabilities. It seem to me that the nano can also do the job, i was wondering if you agree with that. For the board, in view i do not know more about that kind of chip but it seems little and without antenna plug, my question was intended to ask if it can be the same as per specs or not....Hope you can answer to my questions Thank you so much for your efforts

digilander98 avatar Mar 05 '20 13:03 digilander98

Well, I just tried to compile and upload the code for the Arduino Nano and that sure worked fine. But I can't say if it works before I get my parts. Now that I see the Nano next to the Micro, the Nano might not fit into the wristband though. It's like twice as thick due to the PCB being double sided and due to the mini USB port being bigger and in addition to that, the board is like 1cm longer. The specs of the cheaper signal generator seem very similar and the SMT connector is not necessary.

T-vK avatar Mar 05 '20 14:03 T-vK

Waiting for parts me too

digilander98 avatar Mar 05 '20 15:03 digilander98

Some colleagues and me managed to get the circuit going and disrupt the microphone of my phone while recording. We tested it with one transducer and I think we burned it because we put 5V across the circuit. The wiring went something like this, nothing was welded just wired: USB to Arduino Pro Micro, Arduino to cheap signal generator (both power and instructions), cheap signal generator to amplifier (L input and goes to L+ output), amplifier to transducer HC-SR04 (We used a transducer that had transmitter and receiver, so we used the Trigger input only ). The amplifier and transducer were powered by a regulated outlet adapter through the 3.7 to 5V regulator. From this last pieces one was burn out and the other one runs hot, we will try to power everything through the Arduino.

This was in today's morning. Sadly we couldn't replicate it again 2 hours ago, we will weld pins to the holes of the modules and see if the problems was a the poor wiring connections.

Any insights on this would be appreciated. As you could tell we're a complete noobs at electronics so, yeah.

pracdaske avatar Mar 07 '20 00:03 pracdaske

If I had to guess, I'd probably try something like this. But I'd check the outputs of the signal generator and the amplifier with an oscilloscope and multimeter first. mic-jammer1

T-vK avatar Mar 07 '20 10:03 T-vK

@pracdaske Just so you know, the HC-SR04 already has a signal generator and amplifier built in and the pinout doesn't give you access to its TCT40-16T or TCT40-16R. By specification you set the trigger pin high for 10 microseconds, then you set it low and then it sends eight short 40khz bursts in a row, which are then picked up by the TCT40-16R and converted into a high signal on the echo pin. If you attach a 40khz signal generator amplified to 5v to the trigger, you're very close to the theoretical maximum where you almost don't trigger it anymore because the trigger pin needs to be high for at least 10μs. My guess is the HC-SR04 is not designed to deal with such a crazy high amount of trigger pulses and it just overheated. Also be aware that the module doesn't ever generate a continuous 40khz soundwave no matter what you do to the trigger pin. It will always only send 8 short bursts. That might be enough to interfere with a microphone, but it's not ideal. Also, be aware that you probably shouldn't "power everything through the Arduino" because it can only provide very little current (e.g. 20mA on a digital pin and maybe 100mA or so on vcc+gnd). Drawing too much current will probably cause unexpected behavior, cause overheating, shutdowns or maybe even fry it.

T-vK avatar Mar 09 '20 22:03 T-vK

Ok, think everyone will try to power from battery/usb recharge circuit the components at this point, once materials arrive.... Thank you so much guys!

digilander98 avatar Mar 16 '20 00:03 digilander98

@T-vK I managed to get it work consistenly plugging in the Amplifier's output pin to the trigger pin of the HC-SR04 board. The phone's mic catches the ultrasound but the range is really poor. I tried desoldering the transducers from the boards and make a paralel setup with the output of the Amplifier (like in the picture you shared) but nothing comes out.

Then I tried this:

image

I desolder the TCT40-16 R and T and welded them to the T terminals on the board, first in serial (like ne the picture) but only the first one worked at poor range and then in parallel in which 3 out of 5 worked, again at poor range.

Edit: Also I stopped powering everything through the Arduino, I'm using a 3.7V Li-Ion Battery

Edit2: Parallel transducers are something like this: image

pracdaske avatar Mar 16 '20 02:03 pracdaske

@pracdaske HI, my package arrive last week, and I manage to make it work.

IMG_20200316_104336

I don't think you need the HC-SR04 board, just use AD9833 & 8403A, with 8 parallel TCT25-16 T, it can affect microphone to 2m.

will test 40kHz for performance next.

SCWhite avatar Mar 16 '20 02:03 SCWhite

@SCWhite Sadly only TCT40 are available in my country and only as Hc-sr04. I tried this way too: IMG_20200316_125334 But nothing comes out the transmiter. My guess is it only work in 25Khz rated transmitters.

pracdaske avatar Mar 16 '20 18:03 pracdaske

Well, the Code might need adjustments to use frequencies closer to 40khz because at 25khz it probably resonates pretty poorly, meaning it is very quiet. More amplicifation might also work, but it's hard to say as there are no proper datasheets on the TCT40-16T that show a max voltage rating or anything useful like that.

// Mic jammer code adjusted for 40khz

#include "AD9833.h"

#define FNC_PIN A0
#define SEL_PIN A1

int gen_freq = 40000;

int RXLED = 17;  // The RX LED has a defined Arduino pin

//--------------- Create an AD9833 object ----------------
// Note, SCK and MOSI must be connected to CLK and DAT pins on the AD9833 for SPI
AD9833 gen(FNC_PIN);       // Defaults to 25MHz internal reference frequency

void setup() {
  //start gen
  gen.Begin();
  pinMode(SEL_PIN, OUTPUT);
  //set gen to SINE
  gen.ApplySignal(SINE_WAVE, REG0, gen_freq);
  //start gens
  gen.EnableOutput(true);
  //put both PGAs at max output
  MCP41010Write(255, SEL_PIN);
  SPI.setDataMode(SPI_MODE2);
}

void loop() {
  gen.ApplySignal(SINE_WAVE, REG0, random(39000, 41000));
  MCP41010Write(255, SEL_PIN);
}

//  function below adapted from http://henrysbench.capnfatz.com/henrys-bench/arduino-output-devices/mcp41010-digital-potentiometer-arduino-user-manual/
//  8bit value to write --> 256 levels --> value 0 to 255
void MCP41010Write(byte value, int CS)
{
  SPI.setDataMode(SPI_MODE0);
  // Note that the integer vale passed to this subroutine
  // is cast to a byte
  digitalWrite(CS, LOW);
  SPI.transfer(B00010001); // This tells the chip to set the pot
  SPI.transfer(value);     // This tells it the pot position
  digitalWrite(CS, HIGH);
}

T-vK avatar Mar 16 '20 22:03 T-vK

Tried with the frequency at 40000, didn't work without board and I could hear like taps in the recordings I made. @SCWhite I notice you don't plug A1 to anything along with other stuff from the Arduino to the signal generator. Could you tell me how you made the connections, I would really appreciate that. What I did with this AD9833 variant (that doesn't have analogic ground) was: DAT --> pin 16 (MOSI in Pro Micro) CLK --> pin 15 (SCK " ") FNC --> pin A0 REF --> pin A1 OUT --> R INPUT on Amplifier

pracdaske avatar Mar 18 '20 00:03 pracdaske

It would be very interesting in general, which frequency would perform best for mic jamming. I think I'm gonna order a bunch of different transmitters that can cover more than just one frequency. Maybe something like this: 2.5khz-60khz and 55hz-30khz. These probably won't fit on a wrist, but for a stationary jammer or a pocket jammer this could be useful.

I also found this offer for 25khz transmitters. In case the TCT40-16T ones really don't cut it.

T-vK avatar Mar 18 '20 11:03 T-vK

Just got some of the parts I ordered a few weeks ago. I only have a single TCT40-16T at the moment. It works using the 40khz code provided above, but the range is very poor. Not even 1 meter. IMG_20200318_213910

Using an Arduino Pro Micro.

T-vK avatar Mar 18 '20 20:03 T-vK

Tried with the frequency at 40000, didn't work without board and I could hear like taps in the recordings I made. @SCWhite I notice you don't plug A1 to anything along with other stuff from the Arduino to the signal generator. Could you tell me how you made the connections, I would really appreciate that. What I did with this AD9833 variant (that doesn't have analogic ground) was: DAT --> pin 16 (MOSI in Pro Micro) CLK --> pin 15 (SCK " ") FNC --> pin A0 REF --> pin A1 OUT --> R INPUT on Amplifier

HI @pracdaske , my AD9833 doesn't have a MCP41010 on it, so there is no need for CS pin to connect.

just using AD9833 & AD8051 have a good performance at 2m, I'm trying to use multiple generator to get a better(or further) performance.

For your reference, this picture should be clear enough here, my AD9833 doesn't come with MCP41010 & AD8051, so I did some modification with the code and wiring .

I think @T-vK really do a good job up there, but it think the transducer have + - on different pin the ping with black ring should be + (maybe?)

SCWhite avatar Mar 19 '20 10:03 SCWhite

Good news! I managed to get it to work without a signal generator. Turns out you can generate the signals using the Arduino directly! test

I'll keep my progress on that up to date in this repository.

The transducer performed equally for me, no matter how I connect + and -. Not sure if you're supposed to use it a specific way.

Edit: If you just want to play around, you can even run it at 5v directly through the Arduino without an amplifier. Range is pretty low though.

Just using an Arduino Pro Micro, a 1k resistor and an ultrasonic transducer (using the simple code from the repo linked above): IMG_20200319_205037 With a 40khz transducer I get like 15cm of effective range. But it's a nice, simple and cheap setup to just play around with.

T-vK avatar Mar 19 '20 12:03 T-vK

I can't recommend this 55hz-30khz one as it produces a lot of audible noise even when run anywhere between 20-30khz. Because of that I also wasn't successful in finding the perfect jamming frequency yet.

I have tested this cheap amplifier now though and so far it seems to work just as well as the other one.

T-vK avatar Apr 04 '20 14:04 T-vK

Hi, can someone put schematics and code with amplifier without analogic knob and cheap signal generator without sma interface?

digilander98 avatar Apr 21 '20 23:04 digilander98

This https://www.ebay.it/itm/262072330180

digilander98 avatar Apr 22 '20 02:04 digilander98

And this https://a.aliexpress.com/_BPy33R

digilander98 avatar Apr 22 '20 02:04 digilander98

Can you put schematics? Maybe converted for micro?

Thank you so much!

digilander98 avatar Apr 22 '20 14:04 digilander98

Sure, but be aware that you can't change how many decibels the output will be. It it's too high it may cause permanent hearing damage.

image

If you want to use an Arduino Pro Micro instead of the trinket, you have to use pin 16 and pin 15 instead of pin 11 and pin 13: 11 -> 16 13 -> 15

T-vK avatar Apr 22 '20 19:04 T-vK