element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Holiday Special 20
  • Challenges & Projects
  • Project14
  • Holiday Special 20
  • More
  • Cancel
Holiday Special 20
Blog Dog Shaped Arduinos. What could go wrong?
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Holiday Special 20 to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: hugohu
  • Date Created: 10 Jan 2021 7:34 PM Date Created
  • Views 5589 views
  • Likes 19 likes
  • Comments 36 comments
  • holidayspecial20ch
Related
Recommended

Dog Shaped Arduinos. What could go wrong?

hugohu
hugohu
10 Jan 2021

"What brings you joy"


Well, certainly, I'd say dogs, since they're one of my favorite species.

In specific, corgis.

 

image

image

image

image

 

You gotta admit, they have great smiles.

 

image

 

Oh no I published it.

 

*smacks my head*

 

Oh well anyway/

 

"open-ended holiday project competition that challenges you to make a project that reflects what the holidays mean to you"

 

I am, indeed, stretching it with... a bundle of corgi joy.

 

Sorry, Tariq.

 

(Maybe dont disqualify me? Thanks hehe)

 

Well, I designed a small 328P based board, because I was not really happy about 2020 and wanted a furball Arduino that was in 0 ways space efficient.

 

image

 

Well, hehehehehehe

 

It uses a ATmega328P, clocked at 16MHz, onboard USB bridge, yada yada, NANO pinout, yada yada.

 

The point of a project14 is to document your process-

 

Let me do that.

 

I was discussing which arduino they should pick to a beginner, and they were talking about their arduino UNO that just arrived and how their corgi loves to sit on his lap while he works with the UNO.

 

Well, hearing "UNO" and "corgi" gave me the exceptionally bad idea of a corgi-shaped UNO.

 

There's a RX TX LED because it doesn't add much to BOM and I said "why not". It uses a USB-B THT connector, because I actually have a 10% accuracy rate of soldering microUSB.

 

There's a CH340C for USB bridge.

 

I made this design recently(a few weeks ago, early December)

 

I had the PCBs printed and they're coming tomorrow!

 

I'll update with more info... hopefully it works.

 

Oh right. I forgot. "What could go wrong?"
Well, the unique shape makes it... more expensive for manufacturing, remarkably inefficient design. What else could go wrong? My subpar SMD practice. I mean, I did get better at it recently and can go up to 0402?

 

With a SP25?

 

image

 

I would be concerned about signal integrity and that stuff. Wait- did I use 0.5mm for power and 0.3 for signal instead of 0.254 for everything?

 

Here's a bit into an in depth view of the design.

 

Please excuse my ignorance of using EasyEDA, I've just recently begun the transition to KiCAD. image. Libraries are a bit wonky but I'm starting to get the hang of it. Enough of the KiCAD mumbo jumbo.

 

image

 

This is the 328P:

The chip is in TQFP for easy hand soldering(TQFP32 has larger pin pitching too). I've soldered QFN but I'm not the most reliable at such, since it's hand soldering with an iron.

 

As usual, the usual pin net flags, a Reset Button, a 16MHz SMD crystal and it's 22pF capacitors, since I didn't use the packaged ones with 22pF built in.

 

Ground and more netflags-

 

5V LED for power, etc etc etc etc etc etc and a D13 standard LED.

 

Nothing special at all.

 

image

This is the CH340 USB Serial bridge circuit- FTDI is relatively pricey and these are close to 50 cents. I also could have used a Silicon labs CP series chip but its QFN and harder to use, and more expensive. I'm planning to give these as gifts so having a high BOM cost doesn't help.

 

I also chose a CH340C which is more expensive than a G, but has a built in crystal so I do not need an external 12MHz one. Ultimately I screwed up and bought 15 of BOTH CH340C and CH 340G, where I don't need the G. Yeah, five dollars wasted and some chips I don't need. Let me know if you happen to need any CH340G image Shipping included but the crystals are not image

 

image

Following the ICSP and NANO pinout, these are the net flags. Why use NANO? Not so much HATs on them, but it's a relatively compact form factor and I didn't want to do battery charging for Feather pinout.

 

image

This is the part for 7-12V input down to 5V, using an AMS1117, because those are a bit cheaper. Yeah.

 

(If I'm sounding like I'm trying to use a ton of not so great parts to reduce BOM costs, I probably am hehehehe)

 

image

Lastly, this is the USB.

 

Nothing special, just a barrier diode.

 

"Where's 3.3V regulator? No MCP1700 or something?"

Nope... CH340 has 3.3V regs. Fancy, right?

 

image

 

image

 

The power tests look good(I need to clean off the flux a bit)

 

However, I am having some difficulty flashing on the bootloader(as you can see that's what I'm trying to do)

 

I also flipped the ICSP header upsidedown image

 

(The eye is connected to D13)

 

I'll be installing the CH340 driver later today. If that assists with flashing bootloader.

 

A friend informed me I'd need an oscilloscope to probe RX and TX.

 

Ah. I really need to buy one now LOL

 

(or maybe win image, but the chances of that aren't too high. I mean... WOOF)

 

USB WORKS

USB

WORKS

 

You can see my ugly fix in the image below:

image

It consists of a 0.1uF(100nF) cap from 3.3 to GND.

 

Call me stupid, and I am stupid, but I actually forgot.

 

:')

 

But they do work.

 

image

 

image

 

(Also, thanks for tweeting this James image)

Well, it's the 13th, the deadline is the 15th.

 

I managed to get it to work.

 

Hehehehe.

 

Mission accomplished!

 

Also, if I didn't previously note that the D13 LED is on the eyes...

here's a small script to make the corgi "blink" it's eyes...

 

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   
  delay(6000);                      
  digitalWrite(LED_BUILTIN, LOW);
  delay(300);            
}

 

You guys can probably write this in your sleep but code samples assist the project's standing inthe contest.

 

hehe.

 

Well, that's probably all.

 

If I can make a programming rig for this, I'll share it too, if I can make it work before the deadline.

 

Oh yeah, and btw:

 

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
  Serial.begin(9600);
}


void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   
  delay(6000);                     
  Serial.println("Bark bark!");
  digitalWrite(LED_BUILTIN, LOW);   
  delay(300);                    
  Serial.println("WOOOOOOOF");
}

 

A very simple but corgi blinky sketch image

 

(The eye is supposed to blink every 6 seconds )

 

I would like to revisit the topic of "what could go wrong".

 

EVERYTHING.

 

It works, definitely, there are some issues that remain confusing-

 

A portion of boards(currently 1/3) are not able to be flashed.

 

I used the right chip, no solder bridges, everything checks out, but...

 

avrdude: Yikes!  Invalid device signature.

         Double check connections and try again, or use -F to override

         this check.

 

 

Error while burning bootloader.

 

Hello, I'm using a genuine ATmega328P, I know the connection works because I made a frickin' programming rig(more on this later), and...

 

Right now, 2 boards are not working image

 

Time to do a redesign.

 

A bit on my programming rig: it's just the 6 jumper wires in ICSP format and taped together image

 

image

Board without flux image

  • Sign in to reply

Top Comments

  • dwinhold
    dwinhold over 4 years ago +6
    So, wouldn't the Arduino be called a "Corgino"? I love it by the way!! Dale
  • hugohu
    hugohu over 4 years ago in reply to baldengineer +5
    CH340 drivers are really painful sometimes. Yeah, at least I mean SI Labs ones are more straightforward. CH340: you plug it in, sometimes it works, sometimes it doesn't. SI labs: if it's not detected,…
  • ralphjy
    ralphjy over 4 years ago in reply to hugohu +4
    Sorry to hear the USB isn't working. Hope you've figured it out by now.... Forgot to send you pictures of the granddog. I took a couple this morning. On top of the couch waiting for the Oregon rain to…
  • hugohu
    hugohu over 4 years ago in reply to shabaz

    Good point.

    I'll probably upgrade sometime this year.

     

    0.6mm usually works for 0603+, 0402 is seriously stretching it, and narrowly, TQFP44 and less..

     

    Time to go study some thinner wires!

     

    Thanks!

     

    (Oh yeah btw I also use 0.8 for THT)

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 4 years ago in reply to hugohu

    I see.. The modern irons have less metal to heat up, and they're extremely responsive to situations with ground plane. The solder is quite thick, I don't think I have any as thick as 0.6mm currently, even for through-hole parts (although it is ideal for through-hole). That will be an improvement too, once you've moved to thinner solder. It sounds like the iron is the thing causing the issue predominantly though. The boards shouldn't need scrubbing normally. So probably once you have changed iron and solder, you'll be down to 0.0x% probability of unsoldered pad on a passive I bet.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • hugohu
    hugohu over 4 years ago

    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

     

    Demo of corgi blinky, basically on for 6 seconds off for 0.3, says woof bark bark in serial console, etc

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • hugohu
    hugohu over 4 years ago in reply to shabaz

    The parts were *probably* new? I purchased them recently from a distributor. I don't normally use flux for them either, at least for me I find it much harder to solder and have solder stick to pads connected to the ground plane.

    I'm using a SP25, which is  decent but not the best iron. The tips are annoying as heck, though. I'm usually using 0.(6?)mm, since thats the thinnest I have, 63/37, I believe. Maybe 60/40. I do use a wet sponge, I should look into brass wire balls.

     

    I'm thinking about getting a Pinecil in the future, *or perhaps a soldering station if I win and get a shopping cart* (*puppy eyes*)

     

    I do use tweezers, sometimes the part gets flung somewhere and never found again. Doesnt happen, usually.

     

    But mostly, solder is harder to stick to ground plane connencted pads(and I say this with THT and SMD)... I do scrub the boards with a slight abrasive(mesh wire or something) that doesn't damage anything but removes any possible oxidation.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 4 years ago in reply to hugohu

    Hi Hugo,

     

    I see.. that's probably going to be easy to solve your process there. There's only a few things it could be. One is that the parts could be old (e.g. from eBay) and tarnished. Flux helps with that, but better to avoid the issue in the first place by just buying untarnished parts from a distributor. I don't use any extra flux for passives other than what's in the solder. Also, the solder could be the issue. Anything from Farnell/Newark should be very good. If you need details I can recommend specific part codes for what I am using but really it shouldn't matter. Any decent brand SN62 or SN63 alloy should be great, it melts easily with most irons, and hardens quickly. I mostly use 0.38mm diameter solder for passives, or thinner than that (price goes up with thinner). And it could be a soldering iron issue, but I'd be surprised if it is, since all that's needed is a few tens of watts power for such sized parts, and any clean tip (damp sponge or the metal tape in a bunch, I forget what it is called).

    If you think you need an iron, you can get very decent irons for little cost these days. I happen to use a JBC iron, you can very frequently pick them up for under $200 from eBay, alternatively Metcal is a great alternative, or Weller. There's also Pace and Ersa but I have not used those so cannot comment on those. And to be honest all of these are overkill, there are plenty of lower-cost good options too. Nice tweezers can help if you think the issue is placement of the part is not flat to the board.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube