DiaLFonZo - DIY Remote (Using Kurte code)

Looking at my previous post with the SMT packages, I felt like there was too much wasted space on the board. So I was trying to cram the stuff back into a standard Lynxmotion sized board. Decided that was not probably going to work so I split the difference. I was 2.6" wide, standard was 2.3" wide, got it down to 2.45"

While at it I also made the 8th extended Analog signal useable with a jumper that you can put for the voltage divider circuit… Gives you several options. If you don’t need a lot of Analogs, you can always jumper from voltage divider to any analog pin. Did not update the 3d models yet, so drawing is not right, but you should get the idea…

I want to make another pass through and verify my signals, especially with the XBee stuff that should be about the same as the Stuff that Parallax does. Then may order up some boards. Not sure yet from where, I am used to PCFabexpress, Or could try the service through Sparkfun, or the new beta PCBFabepress has the ability to order directly through Bay Area Circuits, which may be slightly more expensive then PCBFabexpress, but not sure…

Kurt

count me in…!

count me in as well

Sounds good, Still doing some finishing checking of the schematic. Found a minor issue yesterday, where I connect up on LED slightly wrong (went through an extra resistor).

Will probably go for first round on this to a US fabricator where I can get it back in a reasonable time. Sounded like the one through sparkfun could take up to a month…

Kurt

I have use Seeedstudio twice.
2 weeks producing + 1 week shipping… still lot of time … lol

What kind of price we are looking here ?
don’t know if you want to assemble them yourself or not.
Maybe a bag of parts to be assembled for me ?

Cost for fabrication: If I go the route I have done in the past: PCBFabexpress, where I generate the Gerber and drill files, If I order 5 boards with 5 days the cost comes out to $75 plus shipping (no testing, no bottom silk screen…). If I go with the one that works directly with DipTrace (BayArea Circuits), their charge for this is about $22 per board under 10 for 5 days, but this also includes doing electrical testing and bottom silk screen, they have an option not to do the Solder Mask, which cuts it down to $18.38 per board.

As for parts, step 1, will be that I update my Parts list for this board… Maybe easiest if each of us order our own parts. Although that will probably imply that you have some extras as some small resistors have minimum order of 10… As I have done several different boards in the past I have several parts already in boxs. For some of these I could probably through a few in the envelope when I send one to you, but as you probably know they are not expensive…

As for Assembly, 1 or 2 will be hard enough for me, so probably best to let you solder your own, where your hands and eyes are probably a lot better at this then mine are :smiley:. If later others want more boards, than it might be nice if someone actually produced the boards… Not sure if this implies solder paste and Toaster Oven or Frying pan, or if someone actually assembles them, not sure…

Kurt

For myself, I have fun playing around with designing and building a board like this as I learn a lot and have fun!

However as a reality check, if one were interested in producing boards like, this, you have to ask yourself what am I gaining by building this board versus some other approaches. Lets say for now that to fabricate and build this board will cost you maybe $40-50 per board. Obviously if you fabricated in China and built lots, the cost would go way down.

But another approach would be to simply purchase something like an Arduino Mega for about $50, maybe use an XBee shield or simply use XBee adapter: $15-50… Plus here is that you have 4 USARTS (1 debug, 1 XBee, 1 Display), 16 Analogs built-in no multiplexer and code needed, lots of memory, standard Arduino setup… Downside is that there is no sound (possibilities here to get that), no 3 pin Servo like connections. But of course we are not plugging in any servos. So could simply wire all of the +5 and Grounds to each other for all of the switches and Joysticks and then simply connect each switch and like into their own IO pin… This approach again is not as clean, for wiring, but does have merit. Variation of this is of course you could wire all of the stuff into Arduino Mega Prototype shield or could use my shield with as much or as little populated in it as we need… Just throwing out ideas… No mater which way we go, will probably still order a few of the boards above to try, just for the heck of it.

Kurt

Current 3d look at board:

I have included a zip file here with all of the stuff I will probably later today send off to PCBFabExpress as I am used to them… The zip file includes the Gerber and Drill files as well as the design files from diptrace. It also includes an Excel Spreadsheet with the BOM with Digikey parts… I need to take a quick inventory of what parts I have and make an order.

But as I said I keep running around in circles. I earlier choose the ATMega644p as it was a DIP that was easy to solder. Now that I went to SMD part with a lot of pins, I wonder if I should convert instead to Atmega128/256. This way I have 16 analog pins without trying, lots of IO pins, and 4 usarts… If I get a chance I may try a quick and dirty board…

Kurt
DIY_003.zip (495 KB)

I have sometime a hard time to translate everything… lol
But do you make them all assembled from PCBFabExpress ?

Nope, just bare boards, that you then need to solder all those little pins :laughing:

I have been told by some other people I should upgrade my soldering station from my current ones (Weller WDL and Hakko) to a newer Weller WD1001 and use water soluble solder and flux would make soldering those things a lot easier… I am still trying to decide if I want to update my station or not…

Kurt

Ok so … to be easy for me…
What would cost me to have all parts from you and solder it myself ?

I would probably solder them with a heatgun and solder paste

It’s been a long time since I’ve been active on here so I’d like to talk about what I have done in terms of a DIY remote. I have a working pcb design that is powered by a standard Arduino Duemilanove. The pcb supports 16 analog/digital inputs, a 16 key matrix keypad, a 128x64 graphic lcd, xbee bidirectional communication, speaker, and up to six buttons for gui navigation. My remote consists of two Aurora gimbals, three slide pots, four toggle switches, two standard pots, and four push buttons. The pcb design is fairly simple. The circuit to control the hardware consists of:

1x 74HC595
1x 74HC166
1x MCP23008
2x 74HC4051
1x Xbee Series 1 Pro
Along with other various support components like resistors, caps, leds, level shifters, and voltage regualtors.

The Remote Code currently has the following features:

-Inverting analog/digital channel via software
-Programming Xbee while installed in remote
-Joystick calibration via software
-bidirectional communication
-battery monitoring
-signal strength monitoring
-A visual interface including text and graphics
-PS2 based api for interfacing with remote’s raw data

Previously planned features included:
-Software configurable Throttle curving
-displaying information from connected robot
-information screen which displays raw data from the remotes inputs
-failsafe mode for loss of signal / low battery
-model memory

Currently the pcb has smd chips but I could easily redesign the board to use all through hole components.

I also currently has a fully functional hardware prototype using a protoboard that I soldered together by hand.

If anyone is interested in more information or the source code just message me. My only wish is to further develop this remote into something that anyone could recreate at home.

To give you an idea about the price of the parts…
All prices are in US dollars.

Index Quantity Part Number Description Customer Reference Available Quantity Backorder Quantity Unit Price Extended Price 1 3 102-1155-ND BUZZER 2.4KHZ 12MM PC MOUNT SPKR 3 Immediate 0 1.31000 $3.93 2 1 160-1426-1-ND LED GREEN CLEAR THIN 0805 SMD PWR 1 Immediate 0 0.34000 $0.34 3 12 160-1428-1-ND LED YELLOW CLEAR THIN 0805 SMD L, RSSI, RX, TX 12 Immediate 0 0.27700 $3.32 4 3 24LC512-I/SN-ND IC EEPROM 512KBIT 400KHZ 8SOIC U7 3 Immediate 0 1.94000 $5.82 5 3 277-1721-ND CONN TERM BLOCK T/H 2POS 3.5MM J2 3 Immediate 0 0.36000 $1.08 6 6 399-1113-1-ND CAP CER 22PF 50V 5% NP0 0805 C10, C11 6 Immediate 0 0.07000 $0.42 7 33 399-1168-1-ND CAP CER 0.1UF 25V 10% X7R 0805 C1,... 33 Immediate 0 0.04900 $1.62 8 3 399-3706-1-ND CAP TANT 10UF 16V 10% 1411 C16, C17, C23 3 Immediate 0 0.52000 $1.56 9 3 497-3468-1-ND IC REG LDO 5V 1.5A D-PAK U5 3 Immediate 0 1.02000 $3.06 10 6 A26508-40-ND CONN HDR BRKWAY .100 40POS VERT 6 Immediate 0 4.10000 $24.60 11 6 A34268-40-ND CONN HDR BRKWAY .100 80POS VERT 6 Immediate 0 7.65000 $45.90 12 3 ATMEGA644PA-AU-ND IC MCU 8BIT 64KB FLASH 44TQFP U9 3 Immediate 0 7.39000 $22.17 13 3 BAV16W-FDICT-ND DIODE SWITCH 75V 400MW SOD123 D1 3 Immediate 0 0.20000 $0.60 14 6 EG2510-ND SWITCH TACTILE SPST-NO 0.05A 12V Reset1, BTN 6 Immediate 0 0.36000 $2.16 15 3 MC74HC244AFELGOSCT-ND IC BUFF/DVR TRI-ST DUAL 20SOEIAJ U6 3 Immediate 0 0.88000 $2.64 16 3 MMBT6428CT-ND TRANSISTOR GP NPN AMP SOT-23 Q1 3 Immediate 0 0.23000 $0.69 17 20 RR12P1.0KDCT-ND RES 1.0K OHM 1/10W .5% 0805 SMD R2, R4, R5, R9, R10, R11 20 Immediate 0 0.10200 $2.04 18 10 RR12P10.0KDCT-ND RES 10.0K OHM 1/10W .5% 0805 SMD R3, R6 10 Immediate 0 0.10200 $1.02 19 10 RR12P30.0KDCT-ND RES 30.0K OHM 1/10W .5% 0805 SMD R1 10 Immediate 0 0.10200 $1.02 20 20 RR12P390DCT-ND RES 390 OHM 1/10W .5% 0805 SMD R7, R13, R14, R16 20 Immediate 0 0.10200 $2.04 21 10 RR12P4.7KDCT-ND RES 4.7K OHM 1/10W .5% 0805 SMD R8, R21, R22 10 Immediate 0 0.10200 $1.02 22 10 490-1729-1-ND CAP CER 0.33UF 25V Y5V 0805 C20 10 Immediate 0 0.29700 $2.97 23 10 RR12Q49.9DCT-ND RES 49.9 OHM 1/10W .5% 0805 SMD R12 10 Immediate 0 0.10200 $1.02 24 25 S9001-ND CONN JUMPER SHORTING GOLD FLASH Shunts 25 Immediate 0 0.12480 $3.12 25 6 S5751-10-ND CONN RECEPT 2MM SINGLE STR 10POS XBee socket parts 6 Immediate 0 1.11000 $6.66 26 3 X1103-ND CRYSTAL 16.000 MHZ 20PF 49US X1 3 Immediate 0 0.81000 $2.43 27 3 568-1456-1-ND IC MUX/DEMUX DUAL 4X1 16SOIC U8 3 Immediate 0 0.56000 $1.68 Subtotal $144.93
This would be pretty close for an order for the parts to build 3 of these boards. So this comes out close to $50 per board plus about $15-20 for the fabrication, plus…, there are some obvious cost savings that can happen. Like I am using the gold break away headers, also including double row versions of these as they are a lot easier to get one 1x4 with one 2x4 and get them soldered in properly so servos plug in easily, versus three of the 1x4s, the the 1x4s are cheaper (actually not…), but could go to simple tin ones…

It is pretty easy to order the stuff from my list, you can simply go to digikey, go to order stuff, then click on Fast Add and then you click simply enter the parts and quantities. I simply have the Excel sheet up, click on a part name, do copy, go to their order thing, type in quantity and do a part for part number… The only complication is some parts you have to order in quantities of 10…

As I mentioned, I may go ahead and fabricate a few (a batch of 5 boards to play with as 2 costs $68, 3 $69, 5 $75) and build some for the fun of it. It is actually a pretty nice little board for General Purpose stuff.

But still wonder if we should do like I mentioned and Devon has now mentioned and instead build a board specific for this project. Depending on what we settle for it could be Devon’s board or could be something similar. From our discussions earlier I believe it will be different as I believe we all wanted to go the touch screen approach. What do you think?

What should go on the main board?
XBee holder, plus status leds?
Button?
Sliders? Maybe 3? Need to look for
Keypad: Probably not, do all with touch screen?
Sound? Maybe not, Touchscreen has sound, need to figure out how to use
Connections for Touch screen: maybe on bottom
Connections for Joysticks: again on bottom?
???
Should most of the face of this shield be visible or only cutouts for things?

Again round and round…

But as I said, would probably end up lower cost in the end as over $20 of connectors on current board, plus speaker that may not be needed, plus leds that wont be visible…

Sorry about this?
Kurt

Here’s a picture of my PCB design. All of the inputs are in the form of 3 pin servo connections. The keypad has its own 8 pin connection.

You can plug this into an arduino or solder a mini in to make this a standalone board.

Here’s the BOM, no prices just the info from my eagle libraries.

Qty Value Device Parts 1 +5v M06SIP JP10 2 +5v M081X08 JP3, JP6 1 0.1uF CAP0805 C3 2 1uF CAP0805 C1, C2 7 10K RESISTOR0805-RES R1, R2, R3, R4, R5, R6, R10 6 10k RESISTOR0805-RES R11, R12, R13, R14, R15, R16 1 10uF CAP0805 C4 1 20K TRIMPOTPTH R8 1 50 RESISTOR0805-RES R9 2 74HC4051_MUX 74HC4051_MUX U$1, U$2 1 74LS166D 74LS166D IC3 1 74LS595D 74LS595D IC2 1 ARDUINO_MINI ARDUINO_MINI U$5 1 ARDUINO_SHIELDNO_SILK ARDUINO_SHIELDNO_SILK U1 1 AX Bank1 M081X08 JP2 1 AX Bank2 M081X08 JP5 1 BAV16W DIODESOD-123 D1 1 BSS138 MOSFET-NCHANNELSOT23 Q1 1 BUZZER12MM BUZZER12MM SG1 1 Buttons M06SIP JP14 2 GND M081X08 JP4, JP7 1 IN M02PTH JP9 1 IN M025MM JP13 1 Keypad M081X08 JP1 1 LM2937 LM2937 U$6 1 M18_ M18_ U$4 1 MCP1700 MCP1700 U$7 1 MCP2300X/SO MCP2300X/SO IC1 1 MMBT6428 NPN-TRANSISTOR_SOT23 Q2 1 RESET TAC_SWITCHPTH S1 1 SPKEN M02PTH JP 1 XBEE-1B1 XBEE-1B1 U$3

nice…
i have plenty of promini

I was thinking that it would be easy to add a resistive touch screen to my board. Personally I like the keypad/nav button combo. I have a love/hate relationship with touch screens XD

I hear you… With buttons you have the advantage of tactile feeling of the buttons, with a touch screen you do not have any feedback. I sort-of shutter when I hear car companies talk about their new systems for controlling everything without any buttons. Talk about distractions… But back on subject… The plus is that when you are doing other stuff like configurations and the like, touch screens are pretty cool as you can make them specific to the task at hand…

I am torn. Devon, In a lot of ways I like the idea that you simply used a board which is basically an Atmega328 with a few support chips… and integrated it into your board, versus actually having to solder them into your board. But this is an interesting trade off as then you still have to solder in several other small components, so you could have just soldered in an Atmega328… So if you see a hobbyist building your board, you should probably convert to through hole components, but if you are going to have them produced and populated, then it may be cheaper and easier to take the components off of the Arduino Pro Mini and put them on your board, as you will need to either find way to solder the Arduino Pro mini to your board, or add pins and sockets for it… And then your board like mine, requires the person building the remote control, to take it and then add everything, for example the 3 sliders, keypad, extra buttons, solder wires to them, maybe add 3 pin connectors for each of them to then plug into my/your board to make it work and then you have to be careful on your wire lengths and the like to get everything to fit…

Versus: Suppose I start off with an Arduino Mega pro board: $50 from Amazon.com cheaper if you go with DFRobot…
Then build a very large shield, that maybe is not fully rectangular as to leave out the location of the joysticks, but in this board, we mount the XBee, plus LCD like you did, can use as many IO pins as we want as we have lots, also we plug in the Keypad, plus mount in the Nav buttons, Power switch… On the bottom of this board we could add connectors for the joysticks, plus bring out some of the extra unused inputs to make it easier to add some custom things in. We could also for example add tilt sensor or leave that is a customization… We would probably not need very much logic actually on this board, simply routing, plus voltage conversion for XBee…

My guess is that this approach would have a slightly higher cost, but my guess is that it would make it a lot easier for others to build.

Not sure if this makes sense…
Kurt

I concur with kurte. waiting to see more.

Question on the Touch screen. I used a touch screen with a PIC a while ago. LINK i found that i kept having sausage finger issues when moving the sliders and had to use a stylist. It also used alot of pins on the PIC. Which screen would you recommend to use with the arduino?

Thanks

I did a little hacking with diptrace and started an all in one board… Not far yet, but this picture may give you an idea…

The board is about 8.5" by 4.75"…

Will git rid of all all SMT components… Shown with a Arduino mega to plug into… Also instead of putting all of the XBee stuff on the board, was thinking of simply putting in holes to mount a Parallax XBee adapter where you could simply have a hole in the top plate that this sticks part way into and you can plug your XBee in and see all of the RX/Tx/Power… leds… (parallax.com/StoreSearchResu … ch=xbee+5v)

I show it with cutout for my 1.5" OLED. The boards leave out the portion where the joysticks would attach to top plate, could potentially include this and see about making a hole big enough… Would add connectors for Joysticks to plug into, likewise display, keypad… Obviously would change this for Larger display with touch screen…

What do you think, is this an approach that makes sense…

Kurt

looks promising, could attach it to the back of the face plate with some standoffs