Today we’ll be taking a look at the Feeltech 12MHz DDS Function Generator (FY2100S), it’s function generator that can do square, sine and triangle waves with sweep plus it’s a 1Hz to 60MHz frequency counter. It seems to work reasonably ok however there is a bit of jitter. Once you go over 8-9MHz – square waves don’t look like they should and the sine / triangle waves look similar too.
Once I picked up the case, it was very light so there’s probably not a lot going on inside.
A few notches later and we’re in, this thing is pretty much empty with all the components being on the front panel – I might just remove the case and make a small back panel for it. We’ve got 5V input from USB, an MC34063 to invert the voltage to -6V (which gives us 12Vpp) and an AMS1117 3.3V LDO.
The Gameboy Cart Shield has now been updated to v1.3 which allows us to increase our speed by using SPI to communicate to the 74HC595 shift registers and also features a power button which allows us to switch cartridges without having to unplug the USB cable and supports the Gameboy Camera now. Previously I used to only provide the PCB / assembled version but I’ve decided that I’ll also start providing the kit version too now that there’s a bit more parts to it (will be in stock in 1-2 weeks).
I’ve had two users contact me with various improvements that could be made – the biggest ones were using SPI, increasing the baud rate, a cartridge sensor idea and a bug fix for reading the cartridge title so I updated GBCartRead to v1.6 to included these improvements.
Instead of using shiftOut, digitalWrite and the delay, we’re able to use hardware SPI to increase the speed and after testing the latch timing, 1 nop wait is all we need. I’ve replaced all digitalWrites and changing the DDR/PORTs directly for switching between inputs/outputs and high/low.
Today we’ll be taking a look at the HP 1410 16 Port 10/100 Switch (J9662A), it’s a 100Mbit 16 port switch so it’s nothing special but it’s suited more for the business environment due to it’s metallic casing.
5 screws later and we’re in.
The layout looks neat and there is a lot of via stitching, date code is 7th week of 2013. We’ve only got 1 electrolytic capacitor on the board (at the input) and they skipped the need for inductors at the input. We have 2x MP1482 SMPS with 1uH unshielded inductors and they are relatively large considering that the input is rated for 12V @ 300mA, so the maximum current that could be used say ~95% efficiency at 5V is ~700mA. Also there’s 4x FPE H40520MN transformer modules and 14 transistors driving the 8×4 front panel LEDs.
A while ago I built a simple constant current dummy load for testing my SMPS however the maximum load was about 1 amp and 2 amps with a fan on it and I always had to use a multimeter to measure the current. I’m looking at having a load of up to 4 amps or more, adding an ATtiny to control a 4 digit LED display to show the current, use a proper potentiometer and use a bigger heatsink.
Originally I was planning to have it all powered by input voltage like before however at low voltages the STP22NF03L N mosfet that I had lying around didn’t switch on enough with the MCP6242 op-amp so after thinking about how I could do it – use 2x coin cell batteries, 9V battery, etc, I went with a Lipo battery. An upside of using a battery is that this allows us to use any input voltage between 0V to 30V to test our load with.
Before I had 1 ohm resistors which were almost getting as hot as the mosfet so I’ve gone down to 0.1 ohm 3W resistors – I added the option of another resistor in parallel if need be. I used a 1.5K resistor on the op-amp on the non-inverting side of the op-amp for a bit more fine tuning of the pot.
It was all working well until I decided to charge up the Lipo batteries to full which was just enough to voltage to fry (and catch fire) one of my high side mosfets from the voltage doubler (should have used boost strapping instead). Now it’s time for me to re-visit this project – use P & N mosfets, change the wireless to 433MHz for more range and add some controllable front/rear lights.
Originally I was going to use the ATtiny85 but since I want the lights to be controllable I need a few more pins so I’ll be using the ATtiny84. Most of the 433MHz receive/transmit code can be re-used from my Alarm system – Remote control upgrade and most of the rest could remain the same.
DDRB|=(1<<PB2);// Motor forward control
DDRA|=(1<<PA7);// Motor reverse control
OCR0A=0;// Sets motor forward duty cycle to 0%
OCR0B=0;// Sets motor reverse duty cycle to 0%
TCCR0A|=(1<<COM1A1)|(1<<COM1B1)|(1<<WGM00);// PWM, Phase Correct and OCRA/B outputs
TCCR0B=(1<<CS01);// 8 prescaler
I decided to simplify the PWM to the motors and have it done all in hardware rather than using timers with interrupts like I did before.
From our last post we revisited the MC34063 circuit to see if improvements could be made in which we found reducing the turn off time helped quite a bit and we also made a constant current dummy load for testing. Also there was a user who left a comment about using a NPN, diode and resistor to improve switch off time, it reduced it by more than half and I saw 40C on the FDC365P mosfet. The MC34063 circuit has become a bit much as it stands in terms of the components/size so I went looking around for another DC-DC chip which costs around the same and is more modern.
I found the Richtek RT8293A on special for 40c which is step-down converter, 4.5V to 23V input, 0.8V to 20V output, 340KHz operation and up to 3 amp output. There is a heatpad on the bottom of the SO-8 package for better heat dissipation.
We adjust the output voltage by the resistor divider like before and since we are at a higher frequency we can use a small inductor though there are a few extra components to the RT8293A circuit too but they only add a few cents more to the cost. There is the 3.3nF and 13K for the error amplifier compensation, a soft start feature which uses a 0.1uF capacitor to slowly increase the output voltage, another 0.1uF capacitor to bootstrap the high side driver, a 100K for the chip enable and they recommend 2x 10uF input and 2x 22uF output ceramic capacitors.
So I went ahead and bought everything that the datasheet said and started designing the PCB around the layout that they provided but looking around there is a reference board made more recently and the layout made a bit more sense so went with that.
Today we’ll be taking a look at the Technicolor TG797n v3 Router (Telstra branded), an ADSL2+ Wireless router with 1 gigabit WAN and LAN port, 3 10/100 ports, VOIP, DECT and 2 USB ports. Once again this is another router which I haven’t heard of this brand before. It looks to be similar to the Thomson Gateway TG797.
2 screws later and we’re in. There’s a small removable panel at the front which looks to be for a DECT cradle.
We’ve got a MP9141ES and 2x MP1492 SMPS near the input jack, an UTC LD1117 LDO and we’ve got Lelon branded electrolytic capacitors, there is a outline in the middle of the PCB for a very large capacitor. The PCB date code is 14th week of 2014 so it’s pretty recent. The heatsink that’s on top of the main chip has been soldered down using what looks like a nail on the top left and some epoxy to hold it down, the heatsink has a foot print which could have been a bit bigger. There are two metal cans, one for the DECT radio and one for something else labelled SC – which there are two more labels on the PCB, I can only assume it means “Special Circuit” or similar.
Looks like we’re missing the transformer from the PSTN black port but it’s still active and the green port is inactive according to the manual. There are 3 different transformers for the Ethernet ports, 1 that covers 2 gigabit ports, 1 for 1 LAN port and another one for 2 LAN ports.
From our previous post, the cases/mounts were built, a few more smaller changes were made and we added in the SMS capability. I thought that was the last change I would do to the alarm system for a long time but it turns out that the range of the remotes using the nRF24L01+ wasn’t very good, when outside the house you had to be within a few metres. This time we’ll be looking at adding 433MHz wireless to our system for the remotes to improve our range.
When I found the remotes range wasn’t great, I tried switching to 250Kbps operation of the nRF however I found that firstly there was an issue with the PCB antenna, sometimes it would work fine but other times I had to touch the antenna and then it works.
I added in a extra bit of wire to the antenna and that sorted it out though the range didn’t really improve much and by that time I had already switched the door/PIR sensors to 250Kbps too so I was stuck with it. So I needed a solution – could I possibly re-wire the old alarm system remotes to transmit the data I want?
Previously I made a small solar power garden light with an RGB LED controlled by an ATtiny13 and I have been thinking about how I could create a different project from it. The ability to control these RGB LEDs via wireless on demand seemed like an interesting idea – potentially you could program a sequence and have them execute it to give you a small light show if you had enough of them.
After browsing for an AVR, I found the ATtiny841 that has 3 timers which is exactly what I need to control each LED properly with PWM (another solution would be to use a WS2812 LED).
Each ATtiny841 was $1.3 so you can’t really go wrong, I didn’t know these MCUs were available so it’s a good idea to regularly browse supplier’s websites for new products. For the server side, I’m thinking an ATmega with 16×2 LCD and keypad to enter the sequence.
The ATtiny841 gives us the ability of selectable output pins for the timers which you’ll need to configure to have any output from the timer at all plus you also need to enable the timer output enable of the pin too.
Today we’ll be taking a look at the EnGenius ESR9850 Wireless N Gigabit Router, a wireless router with 4 gigabit ports, haven’t heard of this brand before.
4 screws later and we’re in.
PCB layout looks quite good, we’ve got a ceramic heatsink on the main processor, 2 RF outputs without the metal cans with the antenna cable soldered on, 2x CAT7125CA SMPS up the top right plus a smaller U8AM878 one near the bottom center and a TX/RX unpopulated connector and an 8 pin unpopulated connector – likely JTAG. PCB date code is 2nd week of 2011.