Skip to content


Doing stuff with the Raspberry Pi

998-02 At the NAG Hackers meeting last night we (the group) decided to work with the Raspberry Pi. The general idea is that we all get an R-Pi (Raspberry Pi) setup and start working together on a project. The actual project is TBD but we know an R-Pi is involved.

I volunteered to provide some initial pointers to help everyone get started…

First step is buying a kit. I recommended the Adafruit Starter Kit $105.

Get a 32GB class 10 SD card, the kit comes with a 4 or 8GB which is bare minimum.

Install the Raspbian Linux image per the instructions here. Some might suggest that we do the NOOB install but I have done a fair amount with Raspbian and Adafruit seems to focus tutorials on this distro for the R-Pi.  They have made their own distro called Ocidentals and that would be fine too. 

On first boot, be sure to enable SSH, and expand the partition to fill your card. Just select these options at the setup menu.

For Windows users, get Putty for your SSH access. Mac and Linux users already have an SSH client.

After your Pi is up and working in a basic way, I recommend that you copy your SD card back to an image on your PC. Just for safe keeping. The same utility used to make the SD Card should be able to copy it too.

The Adafruit kit I comes with a breadboard adapter cable but I like this version better: Breadboard Adapter,  It cost an extra $7.

For  WIFI, this adapter is known to work: wifi adapter

Google has made their own Pi development image! It looks interesting. Google Coder for the R-Pi. I think the group should continue with Raspbian as they want to learn more about networking and basic code development. The Google thing looks to be more about web development.

As a first project, I recommend each group member follow the Raspberry Pi WiFi Radio tutorial. Don’t have to add the LCD panel as that would increase the cost by $25. But this tutorial should serve as a good getting started point.

Posted in Development Tools, Electronics Links, Projects, Raspberry Pi.


Cypress PSOC4 kit for $4!

You can really get a lot for $4. I just received a PSoC 4 CY8CKIT-049 4xxx Prototyping Kit.

What is a Cypress PSOC? (from their site)
PSoC® 4 is Cypress’s newest ARM-based PSoC, featuring the low-power Cortex-M0 core combined with PSoC’s unique programmable mixed-signal hardware IP, resulting in the industry’s most flexible and scalable low-power mixed-signal architecture.

PSoC® 4 Highlights

  • ARM® Cortex™-M0 CPU up to 48MHz
  • Up to 32 kB Flash, 4 kB SRAM
  • Programmable Analog: Op-Amps, 12-bit 1Msps SAR ADC
  • Programmable Digital: Four PLD-based Logic Blocks
  • CapSense® Touch Sensing
  • Low Power 1.71 to 5.5V Operation
  • 150nA Hibernate Mode, 20nA Stop Mode

The interesting part is that it’s a single chip with an ARM CPU, configurable logic blocks and analog goodies all in one! 

The IDE is very nice. I’ve played with the other $30 Eval kit but could not resist getting this kit as it’s much more compatible with the breadboard.

IMG_0453-001

I soldered headers into the board for plugging into the breadboard. It’s jus about too wide, if you plug it in like an IC, you have one row on one side and two on the other for connections. I decided to plug it across the power rail on a big breadboard. The power and ground signals are connected with jumpers underneath the board so it’s ready to go. This trick gives me easy access to all the signals. The USB connector hangs off the end just fine for connection back to the PC.

I love the Ardunio but I can see this board supplanting the Ardunio in my projects. The IDE is great to work with and I’m hoping to have source level debugging but I’m not sure that’s possible, will know soon.  The other PSoC board I have does do source debugging but this one calls that smaller interface board a USB serial connection, rather then saying it’s a debugger connection…

Posted in Arduino, Development Tools, Discovering, Microcontroller, Parts, Review.


N.A.G-Hackers Meeting

Had a great time at the North Austin Gadget Hackers meeting last night. We met at Opal Devine’s near Fry’s Electronics a very noisy place with good food. Even with all the noise we managed to have a good discussion about the Raspberry Pi, Arduino and other platforms for hacking around.

If you are in the North Austin area, join up and come to the meetings…

Here are some links related to the discussion.

Posted in Arduino, Development Tools, Discovering, Electronics Links, Microcontroller, Parts.


Blog-Roll Links – Updated

Not much to report here.. We just went though the blog-roll links. Several were removed either because the sites have gone away or were linking to non-related content. A few were sent link request to some of the blogs we read, hoping for inclusion in their blog roll, after all they have been on our blog-roll for years.

Links
Leave a comment if you know of a site that fits with uCHobby.  We will contact you and delete the comment so it’s safe to include your contact information, it will never be seen at the site (moderation is on).

Posted in uC Hobby Site.


Inexpensive Stepper Kit

Initial review of a inexpensive, too good to be true, stepper motor with driver kit from BangGood.

While browsing around at Amazon I came across some amazing deals on items related to the Arduino. This kit, included a small stepper motor and a driver board made with the ULN2003 for $3.44! Yes, less then $4. I ordered it, and a few other things.

stepper28BYJ

It took nearly a month to get here, from China I assume.  I picked it up this morning and just now hooked it up.

IMG_0397 Here you can see a Digi-Stamp (like an Arduino) on my breadboard with the stepper driver board and the motor. Finding the details on this motor and board was a bit difficult. The best source for information was an instructables, with all the details and even an Arduino program to test with.

I modified the Arduino code from this instructables to work with the Digi-spark I/O pins I used.

Useful Links:

Review:
It works, it’s inexpensive, and it’s easy. I am surprised at what you can get for $4.

For my first test, I powered it from the Digi-Spark 5V and watched it move back and forth. The test program turns it CW one turn then back. This takes 512 steps because the motor is geared, which makes it slow and strong. I tried and could stop it with my fingers grabbing the shaft tightly. I’d say its stronger then the typical servo at 5V. The motor was slightly warm at 5V and the controller was cold with less then 200mA current draw.

Next I powered it from an external 12V supply, things got warmer, the motor and the chip got quite warm but I think it would be OK to operate at 12V. I could not stop the motor with bare fingers at 12V. I grabbed it with some pliers and could stop it. It is very strong at 12V.

All in all a very good deal, you have to wait a while but I think you can do some neat things with this.

Project Ideas?
I would like to make something like the TRS DrawBot or maybe just a clock.  What do you suggest?

Posted in Arduino, Discovering, Microcontroller, Parts, Review.


G+ Favorite – Oleg Mazurov

I’ve run across a great resource for makers, hackers, artist and engineers and wanted to share.

Oleg Mazurov has a rich set of post, many with video over on his Google+ presence. I highly recommend that you spend a few hours looking around.

I’ve only put in maybe two hours of exploring his post and have a few favorites

Cheap and simple TDR

Electronic Circuit Construction Techniques

Basics of Transistor bias

Comments:
Any other great, similar, G+ people?

Posted in Uncategorized.


And the Arduino Giveaway Winner’s are…

Casey Kikendall and April!  Congratulations!  You should have an email from me tonight.

Casey plans to make a custom ESC motor controller to play with PWM.

“I would make a custom ESC motor controller. This would give me a chance to play with the PWM frequencies and see what kind of trouble I can get into with that.”

April wants to giver her dog something to smell.

“I would love to create a project that gives my dog a chance to sniff different smells each hour while she is inside my apt waiting for me to come home. A container would be divided into 4 different sections, each section holding a different item to smell. The container would be hooked up to an Ardunio. A servo would turn the container each hour to let out a different scent. My dog would get a smell treat each hour!”

Both of these projects sound fun. Here is some, maybe, helpful advice for each project.

PWM
I have been using the TimerOne library for high frequency PWM. Running the PWM frequency up near 100KHz to make an analog DAC. Here is a previous article about using Arduino PWM for an audio DAC.

Dog Sniffer
My first thought here is that turning over a container with a servo might be challenging. Also, if you want to hide the smell so it’s a surprise…  Maybe you can use the servo to uncover a seal on the compartment.  Maybe a disk turns opening a path for the smell, the disk covers all 4 sections, but moves to open one at a time via the Arduino

Stay in touch
Good luck on your projects Casey and April…  Use my email address, from the message I send you, to let us know how your projects are going. Maybe we can do an article for you here.

Posted in Uncategorized.


Win a Arduino from Newark at uCHobby

Contest Done! Winners announced.

We all love receiving free stuff and here at uCHobby we have had the pleasure to run several contest where we have given away cool microcontroller stuff to the hobby community.  This time we are giving away two Arduino boards from Newark Electronics. We will pick two winners who will each receive an Arduino shipped from Newark Electronics.

To enter the contest, dream up a project idea and post it as a comment to this article. We will look though these comments and cull out any spam or “me too” type post.  Next Friday, June 6th, we will pick two winners random from the qualified comments. You only need to have an idea, does not have to be new or unique, just something you want to make. For example, “A Cylon LED thingy for fun.”   You can describe it all you like but we only need the idea, plain and simple. A sentence or two is enough. Look over the Arduino projects here for inspiration.

You must supply your name and a valid email address which will not be shared with anyone outside of uCHobby or Newark Electronics. Only the two winners will be contacted, and only in relation to the contest. We are not collecting email addresses for marketing…  Note: that you will have a spot in the comment form for your email address, don’t put the address in the comment text or it will be seen by spam bots. Your comment will not show up instantly, give us a day to moderate and approve them.

Once the winners are chosen, we will send you and email, copied to Newark Electronics, asking you to supply your shipping address. You need only reply so that Newark can ship the prize to you.

Have fun, be creative, and good luck to everyone.

Posted in Uncategorized.


KiCAD for Schematics and PCB Layout

It’s been a while since I’ve done my last hobby PCB project, the SBBPWR moduleSBBPWR stands for Solderless Bread Board Power Supply.  I did this design and several other BB adaptors using KiCAD. Sometime after that I had a paying contract where I moved to Eagle CAD.  At my day job we use Altium.  So I’ve been around the block with CAD tools.

Altium is a Cadillac tool we all wish we could afford but it’s very far out of reach for hobby work. I could probably get away with using it but I want to use an open source tool as a matter of principal.  Eagle is a great package but if you ever plan to sell your work, you will have to fork over significant cash. This leaves KiCAD.

Just to be clear, I don’t mind at all that Altium and Eagle want to be paid. If you are doing hobby work, without any plan to sell it, Eagle is probably the best answer. They have a free or nearly free option, with limitations on board size, layers, schematic sheets etc.  Eagle wants to help the maker community and has these limits to protect their business. It’s all good.

I’m leaning toward KiCAD to get away from limitations which would cost me about $1,500 to overcome with Eagle. I’ve used KiCAD in the past and found it to be a good tool.

There is a long and very good debate on KiCAD vrs Eagle on the Adifruit Fourm. Read this for a good coverage of the argument.

What do you think?  Comments?

I think the trade-offs are basically the following.

KiCAD is free, unlimited, maybe a bit harder to use, unpolished etc..  Does not directly have scripting support and has a very much smaller community supplying libraries etc..

Eagle, is polished, well supported, has a huge community around libraries etc..  It cost nothing if you use it only for hobby projects. There are several PCB houses that take Eagle CAD files directly which saves you the pain of generating Gerber files…

Posted in Development Tools, Projects, Review, Tips.


Playing with Digispark

The Digispark is a tiny, very inexpensive, Arduino compatible microcontroller board. The idea is to make it small and inexpensive so you just use them in your project, just wire them in. Each one cost about $9. You don’t even need a USB cable to work with one.

I backed Digispark when they started at Kickstarter. You can see some of my collection below. The boards with the USB tongues are the little Digispark’s. The other boards are shield board which connect on top. There is a USB male to female module with power switch makes the programming more convent, at the bottom left below.

IMG_0377

 

These little guys have 6 I/O pings used for I2C, SPI, PWM, ADC and general I/O like an Arduino.  They have a slightly modified Arduino IDE but any Arduino user would be right at home.

USB Devices too

Digispark’s don’t use an FTDI chip to do USB to serial, the boot loader and USB is built into the part. This means the Digispark can emulate a keyboard, mouse, joystick, serial port etc..  Is a very cool thing.

The boot loader process is a bit strange and threw me off for a bit. I’m used to the Arduino looking like a serial port. I went looking for the port to set up the IDE etc.. Don’t do that…  When the Digispark powers up, the boot loader starts up and it’s detected by the code download process, then it “goes away” leaving your code in place. You just plug it in when told to, everything else is automatic. 

A Trick for the Breadboard

Instead of soldering in a three pin socket (power signals) on one side and a 6 pin (I/O) on the other side to accept the tiny shield boards, install headers facing down, leaving off the VIN signal (2 pins instead of 3). Now the Digispark mates with a solderless breadboard and can even supply power to your project.

IMG_0380 

I will try some of the stacking sockets used on the Arduino boards to adapt to the breadboard while still allowing for shield boards too.

Comments?

Have you got a Digispark? What have you made?

Posted in Uncategorized.