Show Posts
Pages: [1] 2 3 ... 21
1  Development / Other Hardware Development / Re: 32u4 based APRS Tracker on: August 18, 2014, 06:47:10 pm
It works, but just not perfectly. Any thoughts?

Sorry I missed this.  Well, I think you're right - we could almost fix this but that last tab is a problem.  So by perfectly you mean it's not physically perfect, or functionally?

I'll have to double-check but as sorta hound-dog ugly as it looks, it does seem to work.

I'm thinking to just leave it be because I hand solder the backside of my boards and this - and the transmitter - is on the back.

Belated regards,

Brad
KF7FER
2  Development / Other Hardware Development / Re: 32u4 based APRS Tracker on: August 18, 2014, 06:43:48 pm
francesco-

Sorry for the late reply but to answer your questions (assuming you haven't solved them yet):

1. Pin #4 on the Radiometrix HX1 I've had great success connecting it to pretty much any free digital I/O pin.  No problems.

2. Pin #7 on the Radiometrix HX1... You'll want to connect this to a pin on the Flora that does PWM. 

I guess it depends on the software you're using.  I've been using John's modified version of Trackuino and the pins it supports for the HX1 is 6, 9, or 10 (I think maybe 13 but given how the firmware treats pin 13 you might want to skip that ;-) ).

Just to be clear, for the HX1 on my board I connected Pin #4 (on the HX1) to PD7 and Pin #7 to PB6.

I hope this helps a bit,

Brad
KF7FER



3  Using Arduino / General Electronics / Re: Cheapest PCB house? on: August 07, 2014, 07:06:38 pm
What are the other options out there?

I've heard really good things about http://www.hackvana.com/ though I typically use OSHPark.

Regards,

Brad
KF7FER
4  Development / Other Hardware Development / Re: Let's learn Arduino Micro's design :) on: June 20, 2014, 04:18:13 pm
I don't know too much about bootloaders. Does the micro have its own bootloader? If yes, then why are you using the lilypad USB bootloader? I might be asking the obvious here.

Well... not the Arduino Micro (I don't think; from the contents of the bootloader/caterina directory it looks like this is the same as the leonardo and Esplora).

The LilyPadUSB has it's own version and I assume that's because it's 8MHz.

I started with the LilyPad USB bootloader because I'm also running at 8MHz

I'm building a bootloader from source because I hope to sell my board and while the firmware is Open Source, the USB Vendor and Product ID(s) are not.  So you need to supply your own vendor Id and two product Id's (which means recompiling the source).


Quote
Your name sounds familiar somehow. I don't know why.

I think we've exchanged mails/posts in years past perhaps?

Regards,

Brad
KF7FER
5  Development / Other Hardware Development / Re: 32u4 based APRS Tracker on: June 20, 2014, 03:55:40 pm
I usually buy around 100 units (PDIP ATMEGA328P-PU) so I can get better pricing. It's only $3.50 if you buy 100 TQFP 32U4.

Smart.  I've been buying 25 units just to keep the cost down but you are certainly correct about the 32u4.  I should have bought more (especially seeing as how the TQFP version keeps going out of stock).

Quote
BTW, you are on the west coast. Your purple board delivery must be speedy smiley

It's actually better than that.  I'm about 50 miles (or so) from where the boards are shipped.  In the old days I used to meet Laen at Starbucks for faster turn-around (there was a period a few years ago where he was able to offer less than 1 week turnaround if you could meet him locally).

So it's one day shipping for me.

Quote
My current board is too big and I'm cheap so I'm going with iteadstudio.com in China. 2 weeks is a reasonable wait for potential coasters.

I can understand; purple gets expensive for larger boards.  But two weeks from China is amazing; I thought they took more like  a month.

Regards,

Brad
KF7FER
6  Development / Other Hardware Development / Re: Let's learn Arduino Micro's design :) on: June 18, 2014, 06:44:02 pm
Liudr-

I'm probably the last person who should be commenting here but since I just did a 32u4 board I do know a few answers:

Quote
There is an interesting part on AVCC1, bottom left. The part MH2029-300Y between 5V and AVCC1 is an EMI bead. I bet it reduces interference on the supply so ADC can receive cleaner power, am I right?

I believe so, yes.  I found this useful: http://electronics.stackexchange.com/questions/36167/understanding-the-avcc-pin-wiring-on-arduinoleonardo-low-pass-filter

Quote
There is a diode pointing from RESET to 5V. See the far left side of the diagram. What does it do?

I believe this is something that came from the late revision UNO's.  See http://forum.arduino.cc/index.php?topic=86389.0

That's all I know... you do ask some good questions.  I know I did my own bootloader from source (to change the vendor and product Id's plus I refused to continue the perversion that is the reverse-wired USB activity LEDs) and I'm having issues with auto-reset:  It doesn't.  I have to press the reset switch *twice* to upload code.

But I did start with the stock "LilyPad USB" bootloader and the auto reset did work, so I don't think you need the 10k resistor on HWB (I read somewhere about switching baud rates being part of the auto reset process) but I could certainly be wrong.

Regards,

Brad
KF7FER
7  Development / Other Hardware Development / Re: 32u4 based APRS Tracker on: June 18, 2014, 06:36:45 pm
Power to open source hardware! Thanks for sharing!

No doubt!  And I'm glad to share.  After all, I wouldn't have gotten where I am without others sharing as well.

And talking about Open Source in general:  I got the inspiration to finally do a 32u4-based board from the work of KK6GIP (https://github.com/johnboiles/tinytrackuino) who did a port of the Trackuino 1.4 source from the 328 to the 32u4.

And just to say thanks for this work - which saved me considerable time -  I'll be giving him one of my assembled Revision "E" boards for the cost of shipping.

Quote
So you are using ATMEGA32U4-AU? Isn't sparkfun micro pro using the MU?

Yup.  I really like the 32u4 for the extra memory and the "free" serial port (is way cool to have 'Serial' for debugging and 'Serial1' for the GPS).  I do hate the $6+ cost (quantity 10) and it's limited availability (but I see the 328p is now over $3 in small quantities).

Quote
I'm interested in working with this processor (AU so I can hand solder). Where did you get the EAGLE part? Just asking.

The TQFP part came from Sparkfun's library.  I see that Adafruit has it as well.

Quote
Oh, I guess you have 3 (or multiples of 3) purple boards for each revision? smiley-wink

Wonder how you knew that? :-)

Quote
What about the micro SD slot? Would you be willing to provide some information?

Certainly.  But I suspect you'll be disappointed because I'm using the same socket from the same vendor.  The footprint I found on these forums.  I'll do a follow-up posting tomorrow with a few pictures of the revision "E" board and the post the Eagle files that that time.

Quote
I am using this one I got from dipmicro on one of my designs. The pins are not very long so I struggled a bit with it while learning (burning stuff of course) SMD soldering:

Well there is a bit of a learning curve going SMD soldering for any new part.  If it would help, I've got at least a dozen unused PCBs with the 32u4 on one side and a microSD slot on the other.  I use 805 (mostly), 603 (4x LEDs), and 402 (3x) parts on this board.  Plus a SOT23-3, a SOT23-5, and even a 1206 part.  Plus 0.1" headers.

I'd be glad to give a couple of them to you (or anyone else) who would be willing to pay a couple of bucks (via paypal) for the shipping cost.  They won't work but are good to practice soldering on.  Heck I've got a few parts rattling around that I could throw in as well (some 0805 parts that fell on the floor and some others that I haven't bothered to re-use because they are unidentified).

You'd have to supply a sacrificial microSD socket and TQFP CPU but I thought it might help...

Regards,

Brad
KF7FER
8  Using Arduino / Programming Questions / Re: Using strings: porting from FreeBasic on: June 12, 2014, 07:53:53 pm
I defined them as constants. This also saves me SRAM memory which I need for other data structures. 

I don't think so.  You'll need to define them using the PROGMEM keyword to actually save any SRAM (see http://arduino.cc/en/Reference/PROGMEM).

I could be wrong, but isn't that what PROGMEM is for?

Regards,

Brad
KF7FER
9  Development / Other Hardware Development / Re: Trouble with leonardo bootloader on custom atmega32u4 board on: June 04, 2014, 06:26:02 pm
One thing I think might be related is that my board as well as the FLORA both use an 8MHz external crystal whereas the Leonardo uses a 16MHz crystal. Does the bootloader need to change because of the crystal difference?

I know that John just answered your question  but...

FWIW I just posted my design for a 32u4 based APRS tracker that runs at 8MHz and during my initial tests, I used the bootloader for the "LilyPad USB".

Perhaps that would work better for you?  If nothing else it's in the stock environment.

Regards,

Brad.

10  Development / Other Hardware Development / 32u4 based APRS Tracker on: June 04, 2014, 06:12:18 pm
Hey all... so here is something I've been working on the last month.   It's an APRS tracker based on the Trackuino firmware http://www.trackuino.org.

I took the Sparkfun Pro Micro Eagle files and immediately tossed the .brd file.  I then added a Radiometrix HX1 and a ublox GPS, and changed nearly all the parts to something a bit easier for me to deal with (which means 0805 mostly, there are a few 603/402 parts left).

Not shown is the daughterboard that connects between JP1 and JP2: I have both an LDO version and a boost converter version; each supply 5v.

As of right now it's running a custom bootloader and a port of Trackuino 1.4 by John Boiles (KK6GIP); though I'm in the process of integrating his port into Trackuino 1.5 and adding support for a microSD card.

Any comments would be appreciated.

Regards,

Brad
KF7FER

PS the photo's are of the old Revision "C" boards (where you can see how I messed up soldering JP1)

EDIT: I should add that I used the 3.3v/8Mhz version of the Pro Micro
11  Using Arduino / Programming Questions / Re: Trying to make a standalone signal system... on: May 30, 2014, 02:20:55 pm
Sorry, but while it is like this I'm not able to see what might be causing your problems (and I suspect you are faced with the same problem).

After spending a bit of time looking at the 1,000+ lines of code, the OP really needs to step back and consider how a single signal should work (and just the input(s) that it needs).

Once you get that working, read up on arrays.  The amount of code to control 6 signals with 6 inputs shouldn't be that much more than the code for a single signal and input.

Oh yes... you should also read up on scope.  You're wasting code in setup doing digitalReads and then just tossing the values (since they are local to setup).  Plus you use constructs like:

Code:
sig1 = redred;

But you've never defined what "redred" is, so sig1 is just as undefined as before.

Hope this helps,

Brad
KF7FER

EDIT: Should have been more clear - I realize the quote is Robin's and the "You" is meant to be the OP
12  Using Arduino / Programming Questions / Re: linked list advice needed on: May 17, 2014, 12:38:02 pm
Code:
      if (inByte == 98 || inByte == 110 || inByte == 109 )
      {//is b n m

        if (inByte == 98 || inByte == 110 || inByte == 109)
        {

Might be a bit overkill to check twice...

Regards,

Brad
KF7FER
13  Using Arduino / Programming Questions / Re: Programming With Vectors on: May 16, 2014, 11:56:21 am
Adding #include <vector>  gives compiler error that no such file exists.

What happens if you try:

Code:
#include <vector.h>

Regards,

Brad
KF7FER
14  Using Arduino / Programming Questions / Re: error convert int to const char on: May 16, 2014, 10:58:49 am
Invalid conversion from int to const char is what it says, and highlights that line.

The error is in the following section:

Code:
void joystickJoystickMoveRightCallback(int value) {
  /* Start your code (joystickJoystickMoveRightCallback) */
 
  steerServoPos = map(atoi(value), 0, 1023, 90, 180);

  /* End your code */
}

you're calling atoi on a value that is already defined as an integer.  Hence the error.

Hope this helps,

Brad
KF7FER

15  Community / Local Groups / Re: Salem Oregon looking for Arduino group on: May 15, 2014, 07:05:14 pm
So it's not Salem, but you might find dorkbotpdx to be useful (http://http://dorkbotpdx.org/).

A bit of a drive but full of bi-weekly goodness.

Too bad Salem is a geek ghost town.

Regards,

Brad
KF7FER

EDIT:  Oops, I didn't read your first post close enough.  I see you probably know about them.

So... maybe it's time to start something like dorkbotsalem?  When you boil things down, dorkbotpdx is basically a group of guys getting together for beers, showing off their latest projects and talking all things geek for a couple of hours.

Just a thought, but if you could find a place that had beer and wifi (basic staples), maybe you could start having meetings someplace (try keeping dorkbot meeting nights free and you might find a few people willing to carpool).  Start off with a couple of guys bringing their current stuff... even if it's just a Uno and a breadboard... advertise on Craigslist or something... You wouldn't have to be an expert - just interested in making things.  Show your passion and everything else will follow.

Maybe that'd work?  (if you build it they will come...)

Regards,

Brad
KF7FER
Pages: [1] 2 3 ... 21