Show Posts
Pages: [1] 2
1  Development / Suggestions for the Arduino Project / Re: avr-gcc 4.7.2 on: October 09, 2012, 05:57:38 am
MHV AVR Tool 20121007 for OSX is now available too.
2  Development / Other Software Development / Re: [MOD] Arduino Enhanced Release 1.0.1H for Windows (installer, drivers, etc) +SRC on: October 07, 2012, 06:30:02 am
Rather than using the truly ancient toolchains in WinAVR & Crosspack, you may be interested in using MHV AVR Tools instead, which is a multiplatform up to date AVR toolchain (GCC 4.7.2 & AVR LibC 1.8.0).
http://www.makehackvoid.com/mhvavrtools-20121007

For the latest version, Win32, Linux x86 & x64 are available now, MacOSX is still cooking.
3  Development / Suggestions for the Arduino Project / Re: avr-gcc 4.7.2 on: October 07, 2012, 06:21:46 am
MHV AVR Tools 20121007 includes GCC 4.7.2.
http://www.makehackvoid.com/mhvavrtools-20121007

Win32, Linux x86 & Linux x64 packages are available now, OSX is still cooking.
4  Development / Other Hardware Development / Re: MHVBoard R7 Arduino clone, 328P, V-USB support,20MHz,Proto area,B/board compat on: November 24, 2011, 06:22:35 am
Just a heads up that the first batch of the MHVBoard R7 is currently available on the Australian crowdsourcing site, Pozible http://mhvboard.pozible.com. The funding process will finish in the 13th of December, but I will be shipping kits from early next week.
5  Development / Other Software Development / Re: MHVLib on: November 09, 2011, 06:43:15 am
New update:
    Add VUSB console, allows text output from V-USB devices (such as the MHVBoard) over USB. Requires Paul Stoffregen's HID Listen program to receive the output.
    Extended Device_TX with new methods that utilise dynamic memory: printf(), and write(Xint(8|16|32)_t). The following classes inherit from Device_TX and will be able to use the new methods:
        MHV_Display*  (all display classes)
        MHV_HardwareSerial  (serial port driver)
        MHV_VusbConsole  (USB console mentioned above)
        MHV_VusbTypist  (USB Keyboard driver with Device_TX support)
6  Development / Other Hardware Development / Re: MHVBoard R7 Arduino clone, 328P, V-USB support,20MHz,Proto area,B/board compat on: October 29, 2011, 08:16:27 am
While reviewing my changelog, I remembered why I had SJ1 & SJ2 (what I said earlier was errornous). The solder jumpers SJ1 & SJ2 are so you can assign D- to INT0 instead of D+. This allows the user to implement USB suspend: http://vusb.wikidot.com/examples
7  Development / Other Hardware Development / Re: MHVBoard R7 Arduino clone, 328P, V-USB support,20MHz,Proto area,B/board compat on: October 24, 2011, 05:28:20 am
Thanks Frank, I'll test and decide what to do. I'm somewhat hesitant to change as the R2 boards also used a 1.5k resistor, and didn't have issues.

It does make sense to use a higher value if possible though, since there would be less leakage current.
8  Development / Other Hardware Development / Re: MHVBoard R7 Arduino clone, 328P, V-USB support,20MHz,Proto area,B/board compat on: October 23, 2011, 06:12:23 am
Hi Frank,

SJ1 & SJ2 were supposed to allow you to swap between INT0 & INT1 for V-USB - looks like I stuffed up, I'll have to fix that on the next revision.

L1 is a 10uH through-hole inductor.

Regarding R4, The V-USB docs (and the original Metaboard) both pull up to 5V via a 1.5k resistor: http://vusb.wikidot.com/hardware. Of course, they could be wrong smiley-wink Do you have any examples showing other values?

RE PD4: that was inherited from the Metaboard.

I am currently patching the bootloader so it will always enter if USB is connected, and exit after a user-configurable (in EEPROM) delay if nothing is flashed. My failsafe was to have the user run a flying lead to ground to force bootloader entry (basically, the same behaviour as the upload jumper).

9  Development / Other Software Development / MHVLib on: October 18, 2011, 04:12:24 pm
Hi folks,

I've been working for a year or so now on a runtime for AVR microcontrollers, called MHVLib. It has been built in Eclipse (although I also include Makefiles so that you can work with the editor of your choice), and has been developed with code speed & compactness in mind.

For example, one of the early projects I developed using MHVLib was a BLDC controller, which I wrote in both Arduino and MHVLib. The controller took a value from a serial port, and generated a servo signal to run a BLDC helicopter motor (driving the spindle on my CNC mill  smiley ). The Arduino version took (at the time) 11,900 bytes of flash, and 500 bytes of RAM, while the MHVLib version took 5930 bytes of flash and 177 bytes of RAM, to do the same job.

The latest version of MHVLib is moving towards an event driven model, which is awesome for battery driven projects, as the microcontroller can go into a low power sleep, waking up only when there is work to be done.

Here is what we have at the moment:
  • Digital I/O
  • Timers
  • Serial (both busy-waiting and asynchronous)
  • External Interrupts
  • PinChange Interrupts
  • Servo control
  • Analogue to digital
  • Hardware PWM
  • Gamma correction - calculate on the fly, or lookup tables (recommended)
  • Fast synchronous serial shifter
  • Software H Bridge for driving naked transistors (with PWM support)
  • Realtime Clock & event triggering
  • Debouncing (detect button presses, as well as held buttons)
  • Software PWM Matrix (for passive LED matrices)
  • HT1632 based LED matrix displays such as the Sure Electronics DE-DP105 (search for 0832 led matrix on Ebay)
  • HD44780 & compatible LCD character displays
  • Software controlled voltage regulator
  • EEPROM
  • Power Saving (via AVR LibC)
  • PID algorithm
  • Voltage Regulator (buck/boost controller)
  • USB Keyboard emulation (via V-USB)

Documentation is also online: http://www.makehackvoid.com/docs/mhvlib/classes.html

For full details & to download the library, please check the project page: http://www.makehackvoid.com/project/MHVLib
10  Development / Other Hardware Development / MHVBoard R7 Arduino clone, 328P, V-USB support,20MHz,Proto area,B/board compat on: October 18, 2011, 03:58:02 pm
Hi, We have just sent our our latest iteration of the MHVBoard (R7) off to fab smiley  http://www.makehackvoid.com/group-projects/mhvboard-arduino-clone

The MHVBoard is an Arduino clone kit, which does away with a second chip for USB comms, and instead uses V-USB (http://www.obdev.at/products/vusb/index.html) to talk directly to the main microcontroller.

The kit has been designed to run soldering workshops, and is completely hand-solderable, even by complete newbies (all through hole components except for 1 large pin soltage regulator).

Programming is done via the USBAspLoader bootloader (http://www.obdev.at/products/vusb/usbasploader.html), which presents itself to the computer as a USB ASP programmer, which AVRDude knows how to talk to. Patches for the Arduino environment to teach it about this board are also included.

Since the chip directly has USB support, projects can easily emulate low-speed USB devices using the V-USB library. I have integrated USB Keyboard support into our MHVLib runtime library (http://www.makehackvoid.com/project/MHVLib), and others have written similar libraries for the Arduino environment (http://code.google.com/p/vusb-for-arduino/).

The MHVBoard also has a prototying area available, and our members have successfully used this for various interfaces (displays, nunchucks, etc). I have also built a software controllered 3V->5V boost regulator (using the MHVlib VoltageRegulator driver) in the proto-area so I can run off LiPos, but that is another project smiley-wink

Other unique features include a 20MHz clock (instead of 16MHz on other Arduino boards), as well as breadboard compatibility. A right angle connector can be mounted along the edge, allowing the whole board to be installed (standing vertically) into a breadboard, with all pins broken out.

Cheers
11  Forum 2005-2010 (read only) / Development / Re: Problems with Eclipse installing AVR plug-in on: January 15, 2011, 04:57:07 pm
AVR Eclipse gets the list of programmers by issuing "avrdude -c ?". If your avrdude install is too old, it will not have the Arduino protocol listed in the output of that command.

Check that you are running the latest AVRDude (5.10) and update to it if not. The avrdude config that ships with the install should already have the appropriate lines for the Arduino.

Here is the config I have for the Arduino. Note that the protocol specified is Arduino, which needs to be compiled in:

programmer
  id    = "arduino";
  desc  = "Arduino";
  type  = arduino;
;
12  Forum 2005-2010 (read only) / Development / Re: Problems with Eclipse installing AVR plug-in on: January 13, 2011, 04:34:48 pm
Ralph,

I am successfully using Eclipse Helios with the AVR Eclipse plugin.
The Arduino Mega uses an ATmega1280 microcontroller at 16MHz, so make sure you choose that when configuring your project.

To upload to the Arduino Mega, you need to go to Windows, Preferences, AVR, AVRDude, Programmer Configurations, Add.

Then select "Arduino" from Programmer Hardware, set the port to the serial port your Arduino shows up as (under Windows, you can find this by going to the device manager). Set the baud rate to 57600 and leave the other parameters alone.

Now go to your project, properties, AVR, AVRDude, and choose the programmer configuration you just created from the list.

You should now be able to upload to the board. Compile your project, then make sure that the project is selected in Project Explorer (typically the leftmost panel). Right click on the project, then select AVR, Upload to board (you can add this as a toolbar button too) to upload.

If you get STK500 protocol errors, it's possible the timeout on resetting the board is not appropriate for you. Experiment by manually resetting the board and hitting the upload button.

I hope this helps.

PS. You may be interested in MHVlib, a runtime library for AVRs, developed in Eclipse. You can grab the Eclipse project from http://www.makehackvoid.com/group-projects/mhvlib-efficiency-oriented-library-avr-microcontrollers
13  Forum 2005-2010 (read only) / Development / Re: MHVLib - a C++ runtime library for AVRs on: January 10, 2011, 07:20:42 am
Library updated with:
  • HD44780 & KS0660U displays
14  Forum 2005-2010 (read only) / Development / Re: MHVLib - a C++ runtime library for AVRs on: December 30, 2010, 07:23:30 pm
Library updated with:
  • support for HT1632 based LED matrix displays (search Ebay for 0832 led matrix - you should find them from Sure Electronics)
  • Font rendering
  • Tutorial showing how to use the display to display bitmaps as well as scrolling text
15  Forum 2005-2010 (read only) / Development / Re: MHVLib - a C++ runtime library for AVRs on: December 28, 2010, 10:11:14 am
Just updated with an interrupt-driven debouncing class.

Goodies now included are:
    * Digital I/O
    * Timers
    * Serial
    * External Interrupts
    * Servo control
    * Analogue to digital
    * Hardware PWM
    * Software PWM Matrix (for passive LED matrices)
    * Gamma correction - calculate on the fly, or lookup tables (recommended)
    * Fast synchronous serial shifter
    * Software H Bridge for driving naked transistors (with PWM support)
    * Realtime Clock
    * Debouncing

There is a pile of tutorials included, demonstrating use of most of the classes.

I'm currently working on abstracting a monochrome display from the PWMMatrix class, and adding support for Holtek HT1632 LED matrix drivers.
Pages: [1] 2