Apr 012015
 
Hello, I have modified the VirtualWire library originally developed for Arduino in order to be able to run it on PIC32 Microcontrollers. The main changes concern the interruption setup and handling (OC1 and Timer 2). VirtualWire is a library that provides features to send short messages without addressing, retransmit or acknowledgment, a bit like UDP over wireless, using ASK (amplitude shift keying). It supports a number of inexpensive radio transmitters and receivers. All that is required is transmit data, receive data, and (for transmitters, optionally) a PTT transmitter enable. In addition, I have added 2 functions in the VirtualWire lib, vw_send_float and vw_get_float. These functions allow to :
  • transmit float values
  • manage source value helpfull in case of one receiver connected to several sources
  • manage the type of data transmitted, currently 2 types of data are defined: #define VW_TEMPERATURE_DATA_TYPE 250 #define VW_LIGHT_DATA_TYPE 251
For more information, click the following links: Don’t hesitate to use VirtualWire, and feel free to ask any questions. Eric
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Mar 302015
 
A team of ASU students hacked a DeLorean to recreate the iconic movie scene

A team of ASU students hacked a DeLorean to recreate the iconic movie scene

A talented group of hackers thrilled participants of the Hardware Weekend hack-a-thon with their mods to a classic DeLorean DMC-12. Sponsor hackster.io provided the car in honor of the Hack to the Future themed event, which was hosted by Local Motors in Chandler. Special effects installed by the team included cool blue LED lighting throughout the car, and dual alcohol burners with electronic ignition. The complex lighting, fuel pump and ignition systems were controlled by a chipKIT uC32 and Motor Control Shield from Digilent.

The weekend event was a big success, with 16 teams competing for various prizes. There were several creative and impressive projects, but the DeLorean hack promised to be most dramatic. After a few test runs in the late afternoon, final adjustments were made to ensure an effective demo for the judges. The team took a much needed break, as the other presentations continued inside.

Finally, it time for the DeLorean demonstration. A crowd of spectators gathered as the hack was described in detail. Under cover of darkness, the DeLorean’s throaty engine roared to life. The signature gull wing doors closed, and the DMC-12 rumbled far down the lane and turned into position. There was a moment of anticipation, before the machine accelerated for its run past the crowd, spraying fire and leaving a long burning trail on the tarmac. During ignition, the cabin lighting flashed red to add that final touch.

Congratulations to the Smoke and Mirrors team from Arizona State University, including Cody Van Cleve, Frank Ross, Eric Person, Caleb Carlson, Josh Kosar, Deep Patel and Carly Thalman, for their excellent chipKIT-based hack and First Place win at the Hardware Weekend Series hack-a-thon.

VN:F [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Mar 272015
 

Task Mangement with chipKIT Platform

Besides the many Arduino-based core functions available to you, the chipKIT platform also provides chipKIT-specific core functions for the core timer service and task management.

In this post, we focus on task management, by providing a simple example. Task Management essentially allows for multiple tasks to run in the background, which can simplify the programming in your loop() function. The example below animates an LED in the background by using the createTask() core function. Notice how this task-management functionality provides for a simple RTOS-like environment.

#include <SoftPWMServo.h>

char dim = 0;

/* Using the Software-based PWM Servo library, 
 *  the UpdateLED() function below dims the 
 *  PIN_LED1 (You can reference the actual pin 
 *  number for your board using the Board_Defs.h 
 *  file for your particular chipKIT board)
 */
void UpdateLED(int id, void * tptr) 
{
	SoftPWMServoPWMWrite(PIN_LED1, dim++);

	if (dim == 70) {
  		dim = 0;
  }
}

void setup() {

	/* createTask() is a chipKIT "Task Management" 
	 *  core function. In this case, it takes the  
	 *  function we defined above, UpdateLED(), as a 
	 *  task to perform. It provides a scheduling interval
	 *  of 20 milliseconds and initializes the enable 
	 *  state of the task. When the board is turned on
	 *  this setup() will run, and the new task will be
	 *  enabled.
	 */
	createTask(UpdateLED, 20, TASK_ENABLE, NULL);
}

/*
 * Notice, there is no need to run anything else in the loop() 
 *  portion for the UpdateLED() "task" to run in the background.
 */
void loop() {}

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Mar 232015
 
chipKIT Fubarino Mini Pin Diagram

Ever wanted to see the pin functions at a glance for the chipKIT Fubarino Mini? Well, thanks to Brian Schmalz, you have the above pin-mapping diagram!

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Mar 182015
 
Hackster Hardware Weekend Hackathon Series - Hack to the Future with the DeLorean

“Hack to the Future” at the Hackster Hardware Weekend Series of Hackathons!

If you’ll be in LA this weekend (or any of the following US cities in the coming weeks) get yourself ready to hack an original DeLorean DMC 12 at the “Hack to the Future” Hackster Hardware Weekend traveling roadshow, or shall we say Hackathon! Microchip will graciously be providing some chipKIT Fubarino Mini boards to help teams build their projects. Teams have a chance to win cash prizes every week, including $1000 for the Best Hardware Hack per city.

To learn more about the Hackster Hardware Weekend visit http://www.hackster.io/hardwareweekend.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Mar 062015
 
Can you do it? Yes you can! James at Digilent has put together a post to show how you can run five or more servos on chipKIT uC32 quite easily, as long as you follow some guidelines. The chipKIT Servo library makes the coding easy, so all you may have to worry about is the power consumption. Read on to find out more! :)
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Mar 052015
 
How does chipKIT Uno32 know when the button is pressed... By Polling or Interrupts?

How does chipKIT Uno32 know when the button is pressed… By Polling or Interrupts?

If you’re new to microcontrollers and you want a quick overview for using polling or interrupts in your sketch, Digilent has just the blog post for you! In this post, James explains the differences between using polling vs. interrupts to determine when an input (like a button press) has occurred.
VN:F [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Mar 042015
 
Light painting with chipKIT uC32 and LED strip

Light painting with chipKIT uC32 and LED strip

You have to admit, light painting is WAY cool, even if you’ve just done it low-tech style with a flashlight. But on Digilent’s blog, you can learn how to light paint in a more “high-tech” way, if you will, with an LED strip (WS2812 LEDs) and a chipKIT uC32! Check it out!

VN:F [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Feb 272015
 
PSoC Capacitive Touch Sense Pad connected to PSoC board

PSoC Capacitive Touch Sense Pad connected to PSoC board

If you didn’t get a chance to check out last weekend’s Hackathon, held at ASU Polytechnic campus, check out Vageesh’s summary! Using a chipKIT uC32 and capacitive-sensing technology, his team began developing a hand-held object modeler/scanner. Read more about it on his blog!

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS