Showing posts with label Kicad. Show all posts
Showing posts with label Kicad. Show all posts

Wednesday, July 10, 2013

Don’t copy– Okay, don’t mind if I do?

image
Nordic says don’t copy or use the EK and DK schematics as a reference . They say use the specific reference schematics and layout but design the antenna yourself. I don’t like that their Balun’s are different on the reference. I might ask why.
Sorry guys, but advice not taken. I’ve seen these work, with good range. The DK and EK trace antennas look to be identically built on 1.6mm FR4 boards with the same copper weight. The DK is two layer, the EK is four layer, but the antennas and components are identical. So I’ll try it.
ST Micro offered some help because of my twitter comment. After describing my problems they (correctly) blamed my reflow setup / stencil. I didn’t suspect it was a problem with their hardware, I suspect their Balun was meant for more professional production and that everyone, even the pros, will have to waste a few of these Baluns. Just less than me.  I just bit off too many things in one step. Namely trying to make an antenna setup while trying to get the ADS1248 onboard too and figuring out how to reflow a QFN. Baby steps people!
I might be able to shrink the size of the board back as the discreet balun moves the antenna up. This is good news as an L shaped board added 4mm to one dimension. This brings it back to near SD card sized I hope. 2 boards = 30 dollars, 4 = 50 dollars, and 30 dollars shipping. APcircuits turn around is hugely fast, so that’s who I’ll be going with on this. I’ll use OSHpark when I sort out any problems.

Sunday, June 2, 2013

Circuit Board Designed–95%

image

Circuit Board design with the exception of the antenna and all respective parts (except the nRF51422 which I already have in my possession) have been ordered. They should arrive Tuesday or Wednesday which will allow me to check to make sure all the parts fit the pads I’ve outlined on the board and make any needed edits. During this time I’ll design the antenna.

Currently the board is 26mm x 32mm. It might have to get wider to accommodate the antenna slightly as I do no wish to use a meander trace. I want either a trace antenna or an IFA. I might make separate board with a ceramic antenna.

I’ve been given the suggestion to include an SMP connection such that a network analyser could be used to tune the antenna. I am going to try the technique where you make the antenna too long and cut it back. I’ve read about people tuning with a basic RF spectrum analyser with this method which is cheaper for me. (RF spectrum = 200 dollars, network analyser = thousands).

I need to spend some time on the silk screen labelling. It’d be an amateur mistake not to spend more time on this as it really helps clarify what the parts are for future debugging.

Total cost of all associated parts is somewhere in the vicinity of 30 – 40 dollars. However, I’ve been quoted at prototype assembly at 70 – 90 dollars a board. More motivation to finish the reflow toaster.

Tuesday, May 28, 2013

Kicad–Schematic 90%–PCB 15%

image

Some slow progress, but it’s coming along. The schematic is about 90% done, but the PCB has barely been touched. I’ve just been doing some trials making sure it all translates well in Kicad from schematic to PCB layout. Below you can see the footprint layout compared to a CR2032. This is quite small. The trace PCB antenna will come off from the integrated balun from ST micro to the right. You can see the peculiar five dot layout next to the nRF51422 QFN footprint. This is ST micros integrated Balun. It’s 2mm^2.

DSC_9226

To give you an idea on where this is going to reside I have added the picture below. The area just behind / below the chainrings seems sufficient for the circuit board. However two major hurdles.

  1. Battery Placement
  2. Antenna Placement

Coin Cell for scale. Note: I’m showing a CR2032, but I plan to use a CR2450 620mah cell. Slightly bigger physically.

DSC_9228

Once I get the schematic and board close to finalization I will order the parts from Digikey. Most of the parts are very inexpensive except the ADS1248. This is considered the heart to the design in my mind.

When I order strain gauges I’ll also be ordering platinum RTDs. Each RTD will sense one of 3 strain gauge locations. (Top and Bottom for Right leg sensor, one for left leg sensing).

This is going to be close to a “NEVER ZERO” power meter. Rotor is pretty much there from what I’ve heard, but mine will be priced much more competitively once out of the beta. FTSH header include for reprogramming / hacking via the CMSIS-DAP.

Hoping to have the rough PCB by the end of the weekend, and a 3D concept of the enclosure which will be 3D printed. The enclosure will likely just resemble a circular battery holder by the crank arm and a simple covering over the board and strain gauges. Nothing fancy.

Monday, April 8, 2013

Kicad–Another Learning Curve

image

For my initial circuit boards I used Cadsoft Eagle. In my undergrad I tried it and I very much disliked it due to it feeling “dated”, but I was busy doing mechanical engineering. As a result I decided to push my EE-like ambitions out, and moved on with my life.

When I was hit with the need to design PCBs I had found that the hobbyist community had already strongly developed around Eagle. To be honest, I’ve never been sure why. I mean, in the 6 years I haven’t been using Eagle it hasn’t changed – well, 6 years ago it crashed a bit, and now it doesn’t. But the interface looks identical and as a result I’ve had to change my Solidworks / Ansys mind-set towards a very different workflow.

However, today, I hit on a legal dilemma. CADsoft Eagle’s free version is for non-commercial works only. If I create the circuit board for my beta group with Eagle, then I have to reproduce it later in another package if I wanted to sell it. It’s better to bite the bullet and do this up front. I don’t have a specific timeline built up, but I plan to start ordering parts within a week (resistors, capacitors, inductors, battery holders, etc) and designing up the enclosure (which will be produced after I get a new PCB up and running).

Kicad is a free and open source alternative with no commercial restrictions as far as I can see. I’ve been doing a tutorial to get my bearings and it’s not too different from Eagle – except it looks and feels 5 – 8 years newer. The workflow and buttons are similar but like anyone who switches from one 3D software to another: the combinations of CTRL, ALT, Shift + Mouse L/R/Middle + movement are all different. After using one piece of software a lot, say ANSYS Classical, then moving to Solidworks, then to Ansys Workbench, means you are constantly confusing yourself on how to navigate a simple space. It really makes you feel a bit like an idiot – luckily nobody really notices.

To be honest, I wish I had access to Altium Designer as Nordic already has reference schematics and layouts in these. However, Altium Designer is not a cost feasible solution ($7245 US) and I’m sure the learning curve would be even worse. I’m sure an experienced designer would be able to make use of the design software better than I could. However I’m at best a Mechatronics kind of guy.