Author Topic: [R2] OpenGen – OSHW handheld waveform generator  (Read 10929 times)

0 Members and 1 Guest are viewing this topic.

Offline Precipice

  • Frequent Contributor
  • **
  • Posts: 403
  • Country: gb
Re: OpenGen – OSHW handheld waveform generator
« Reply #25 on: August 04, 2014, 08:37:34 pm »
1: Yes, I do need to add something like that. I'll wire the battery divided by two to a spare ADC pin.

Don't forget that'll flatten your battery!
(gate the battery voltage before the divider with a P-FET)
 

Offline microbugTopic starter

  • Frequent Contributor
  • **
  • Posts: 568
  • Country: gb
  • Electronics Enthusiast
Re: OpenGen – OSHW handheld waveform generator
« Reply #26 on: August 04, 2014, 08:39:05 pm »
OK, I will. That hadn't crossed my mind, good thinking.
 

Offline nightmechanic

  • Contributor
  • Posts: 28
  • Country: il
Re: OpenGen – OSHW handheld waveform generator
« Reply #27 on: August 04, 2014, 08:41:45 pm »
I do not see how you can guarantee that your 5V switcher and VBUS are exactly the same voltage.
The USB voltage is guaranteed to be (as far as I remember) 5V+/- 5% which is a range of 4.75 to 5.25V. think about a case where your switcher is set to exactly 5V and the PC is 4.9V this 0.1V will cause significant current (I would imagine this is a low resistance path) between the switcher trying to get the voltage back up to 5V and the PC loading it ...

Ran
 

Offline microbugTopic starter

  • Frequent Contributor
  • **
  • Posts: 568
  • Country: gb
  • Electronics Enthusiast
Re: OpenGen – OSHW handheld waveform generator
« Reply #28 on: August 04, 2014, 08:43:12 pm »
The easy solution to that is a fairly high value resistor between VBUS and 5V. VBUS only exists as a reference in this case.


I'll see if there is a more elegant solution.
 

Offline nightmechanic

  • Contributor
  • Posts: 28
  • Country: il
Re: OpenGen – OSHW handheld waveform generator
« Reply #29 on: August 04, 2014, 08:45:17 pm »
what are you using VBUS for?
As far as I know the FTDI board (e.g. from sparkfun) is also a bus powered design. If you do not intend to use USB power,  I would recommend that you take a look at the FTDI datasheet figure 6.2 - "self powered configuration" where VBUS is only used as an indication to the FTDI.

Ran
« Last Edit: August 04, 2014, 08:50:54 pm by nightmechanic »
 

Offline microbugTopic starter

  • Frequent Contributor
  • **
  • Posts: 568
  • Country: gb
  • Electronics Enthusiast
Re: OpenGen – OSHW handheld waveform generator
« Reply #30 on: August 04, 2014, 08:46:36 pm »
Come to think about it, nothing. The circuit will be powered when communicating over USB anyway, so I don't need it. I'll disconnect it.
 

Offline microbugTopic starter

  • Frequent Contributor
  • **
  • Posts: 568
  • Country: gb
  • Electronics Enthusiast
Re: OpenGen – OSHW handheld waveform generator
« Reply #31 on: August 18, 2014, 09:00:33 pm »
R2 is here (schematic attached)!

Changelog:
  • Disconnected VBUS from 5V.
  • Added battery protection (2xBQ29700) and power switch.
  • Changed output amplifier configuration.
  • Redrew schematic to use hierarchical sheets. While it's still not as good as it could be, it should be readable now.
  • Recalculated some resistor dividers on the analog board which were wrong.
  • Added test points.
  • Completely changed power supply (see schematic for details). No longer using MC34063.
  • Added battery monitor connection to MCU.
  • Added ATtiny2313A. Its sole job is to program the AD9850 very fast during frequency sweep mode.
To do:
  • Add output enable switches and relays.
  • Add hardware OR gate to control ANALOG_ENABLE.
  • Add various indicator LEDs.
Feedback greatly appreciated!
 

Offline microbugTopic starter

  • Frequent Contributor
  • **
  • Posts: 568
  • Country: gb
  • Electronics Enthusiast
Re: [R2] OpenGen – OSHW handheld waveform generator
« Reply #32 on: August 19, 2014, 09:04:37 pm »
Bump.


Any feedback would be great; if it looks fine just say so!
 

Offline bance

  • Contributor
  • Posts: 32
  • Country: gb
Re: [R2] OpenGen – OSHW handheld waveform generator
« Reply #33 on: August 20, 2014, 11:39:42 pm »
Hey Richard,

I have a few questions for you, I was looking for a solution  as to an output stage for one of those DDS modules pretty much around the time of your other post... something like "wide bandwidth variable gain amp."

Anyway I tried various configurations without much luck, and as soon as I read that thread I realised that an AGC was the solution.

I tried a couple of those too, but most circuits I found were designed for audio bandwidth and didn't behave at all well, at higher frequencies. So I have ordered a few ad603 ICs.

Have you prototyped this project yet? Does it work on a breadboard? Or should I look towards dead-bug/Manhatten style?

What is the advantage of using the analogue multiplier for the variable amplitude as opposed to a simple voltage divider?

What were the parameters that led you to choosing the op-amps for the final pre-amp/power amp stages?

I know that's a lot of questions, and some of the answers may seem obvious but I'm a bit of a noob... so humour me if you can!

Thanks Steve.
 

Offline microbugTopic starter

  • Frequent Contributor
  • **
  • Posts: 568
  • Country: gb
  • Electronics Enthusiast
Re: [R2] OpenGen – OSHW handheld waveform generator
« Reply #34 on: August 21, 2014, 07:46:22 am »
I'm happy to answer your questions! They're quite valid.

I haven't yet prototyped this yet, but if you plan to use it at high frequencies (<10MHz), dead bug is the way to go. There is parasitic capacitance between the metal strips of the breadboard that would mess up your prototype.

I did look into a few options before choosing a multiplier. It basically comes down to bandwidth again:
- Digital potentiometers don't have high enough bandwidth (signals at high frequencies get attenuated). I assume this is what you meant by a voltage divider as the point of the amplitude control is to allow variable amplitude.
- Varying the gain on an op-amp drastically changed its frequency response, and gains above 2 or so will cut back the frequency response a lot.
- Programmable gain amplifiers (often used in RF circuits) are few and far between and most of them weren't suitable.

The op-amps were mainly chosen for speed and slew rate. I was originally going to use the THS6022, but it's slew rate would not have let me output a 40MHz signal at +/- 10V. The slew rates had to be over 2800V/us (c475p calculated that) so I went for well over that to be on the safe side. The fairly high frequency also cut down my options more that I had thought it would; when you have a gain of 5 there are very few, if any, op-amps with a high enough slew rate. This is why I went for a dual configuration with 2 op-amps daisy-chained; they would each have a lower gain which gave me more options. I chose the THS3001 (the first one) partly because I already had one :) and mostly because it has an excellent frequency response which is well documented. I chose the ThS3095 because it also has a good frequency response and can easily supply the required 200mA (10V, 50 ohm load). The resistors for them were chosen by looking I. The datasheets, which recommended specific values for certain gains to get the optimum frequency response.

I wouldn't describe myself as an analog person either!

~Richard
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf