Posts | Comments

Planet Arduino

Archive for the ‘Firmware’ Category

If you’ve been hanging out here at Hackaday for awhile, you’ve certainly seen projects that were based around the concept of putting a miniature computer inside the carcass of some other piece of electronics. In fact at this point it’s something of a running joke, certainly we must have seen an Arduino or Raspberry Pi shoehorned into every type of consumer gadget ever built by this point. But if you thought this would be another example of that common trope by the headline, you might be in for something of a surprise.

[zapta] didn’t put an Arduino inside this GOJO LTX-7 soap dispenser, it was already in there to begin with. That’s right, apparently we’ve hit the point that even cheap soap dispensers are now running on programmable microcontrollers. While we can’t blame those of you who are no doubt groaning and/or rolling their eyes thanks to this particular case of computational gluttony, it does mean we’re able to report with a straight face something which frankly would have passed as an April Fool’s joke in previous years: the development of an open source soap dispensing firmware.

So how does one upload a new Arduino sketch to their GOJO soap dispenser? It’s not like the thing has a USB port on the side for convenient hacking. As explained by [zapta], it involves stripping the dispenser all the way down until the electronics board is free, and then adding in a programming header to make subsequent firmware fiddling a bit easier. Writing a new firmware to the ATTiny48 powered board will require an external ISP (the Atmel AVRISP MKII was used for this hack, though any should work), but it’s otherwise pretty painless.

[zapta] has done an excellent job documenting the different components on the board, and reverse engineered enough of the critical aspects (such as the motor controller and proximity sensor) to write a new open source firmware which can be flashed to the GOJO LTX-7. Beyond allowing you to “Open Source All the Things”, using this new firmware does have some practical advantage in that you can configure how much soap is dispensed per activation. Going further, we’d be exceptionally interested in hearing about anyone who manages to come up with a firmware that enables some hitherto impossible soap dispensing trickery.

We’ve seen hacks involving dispensers of all types, from Halloween games that spit out candy to gadgets which let dogs get their own treats, but a soap dispenser hack is something truly new for us. More proof that there’s still plenty of hardware out there just waiting to be hacked!

Instal·lació

 He trobat una bona guia d'instal·lació del S4A a la Raspberry aquí.

A la pàgina oficial del projecte S4A hi ha la guia d'instal·lació general de l'S4A amb els vincles per instal·lar el IDE, i el firmware

 

 

http://s4a.cat/

 

 

Per tal de descarregar el firmware a la placa, ho he fet amb l'ordinador de sobretaula (Ubuntu 16.04) i m'he trobat amb el següent error del IDE:

Arduino IDE error - avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied 

 

S'ha d'obrir el terminal i fer:

 

$ sudo usermod -a -G dialout <nom d'usuario>
$ sudo chmod a+rw /dev/ttyACM0

 

Instal·lació

 He trobat una bona guia d'instal·lació del S4A a la Raspberry aquí.

A la pàgina oficial del projecte S4A hi ha la guia d'instal·lació general de l'S4A amb els vincles per instal·lar el IDE, i el firmware

 

 

http://s4a.cat/

 

 

Per tal de descarregar el firmware a la placa, ho he fet amb l'ordinador de sobretaula (Ubuntu 16.04) i m'he trobat amb el següent error del IDE:

Arduino IDE error - avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied 

 

S'ha d'obrir el terminal i fer:

 

$ sudo usermod -a -G dialout <nom d'usuario>
$ sudo chmod a+rw /dev/ttyACM0

 

ABX00005_front

We’re very happy to announce that the source code of the real-time operating system (RTOS) powering the Arduino 101 and Genuino 101 is now available for hacking and study purposes.

The package  contains the complete BSP (Board Support Package) for the Curie processor on the 101. It allows you to compile and modify the core OS and the firmware to manage updates and the bootloader. (Be careful with this one since flashing the wrong bootloader could brick your board and require a JTAG programmer to unbrick it).

The firmware runs on the x86 chip inside the Curie module and communicates with the ARC core (which runs your Arduino sketches) using the callbacks.
Right now, the x86 core takes care of handling Bluetooth Low Energy (BLE) and USB communication, offloading the ARC core.
You can use the code which implements these functionalities as a starting point for your custom extra features.

Ever wondered about adding Mouse and Keyboard functionalities to your Arduino 101 and Genuino 101? Or uploading your sketches via BLE? Or add deep sleep functionalities when your application is battery powered? Now you can! (Some effort may be required :) )

We hope that this step will bring even more interesting features to your Arduino 101 and Genuino 101, so even if you are not into low-level C programming, keep an eye on the dedicated forum section and Arduino 101 core github repo to follow the news and be the first to try new features.

If you want to know more about projects made with Arduino 101, check our Project Hub section in Arduino Create, don’t forget to share with the community your experiments creating a new project and take look to this obstacle avoidance tutorial  on America’s Greatest Maker website  !

We recently went through a significant refactoring of the Bricktronics software libraries for Arduino (and other platforms). The all-encompassing library was split into separate sub-libraries, one for each motor and sensor type, plus one library for the Bricktronics Shield and Megashield. We’re calling this new set of software libraries “Bricktronics v1.2”.

Highlights of the changes include:

  • Complete API documentation for each library
  • Addition of two new sensors: Color sensor and Light sensor
  • Addition of better PID control for motors, including position control, angle control, as well as brake/coast functionality
  • New examples for the new motor API functionality
  • Now easier to use the individual libraries with other platforms such as ChipKit, Teensy, etc
  • All library dependencies (such as required 3rd party libraries) are clearly mentioned in all examples and Readme files, including links and installation directions.

This is the list of the new individual Bricktronics software libraries. Unfortunately they are not compatible with the original libraries, but since they are better in every way, we strong recommend everyone upgrade to these new v1.2 libraries.

We still have more website updates to make, including new photos, new examples, new demonstration videos, and new hardware(!) but we want to let you know about the new software libraries because we’re really proud of them. Please let us know what you think in the W&L Forum.

Dic
01

Using The Second Microcontroller On An Arduino

arduino hacks, ATmega, atmega16u2, ATMEGA2560, ATmega328, bootloader, cdc, dfu, Firmware Commenti disabilitati su Using The Second Microcontroller On An Arduino 

While newer Arduinos and Arduino compatibles (including the Hackaday.io Trinket Pro. Superliminal Advertising!) either have a chip capable of USB or rely on a V-USB implementation, the old fogies of the Arduino world, the Uno and Mega, actually have two chips. An ATMega16u2 takes care of the USB connection, while the standard ‘328 or ‘2560 takes care of all ~duino tasks. Wouldn’t it be great is you could also use the ’16u2 on the Uno or Mega for some additional functionality to your Arduino sketch? That’s now a reality. [Nico] has been working on the HoodLoader2 for a while now, and the current version give you the option of reprogramming the ’16u2 with custom sketches, and use seven I/O pins on this previously overlooked chip.

Unlike the previous HoodLoader, this version is a real bootloader for the ’16u2 that replaces the DFU bootloader with a CDC bootloader and USB serial function. This allows for new USB functions like HID keyboard, mouse, media keys, and a gamepad, the addition of extra sensors or LEDs, and anything else you can do with a normal ‘duino.

Setup is simple enough, only requiring a connection between the ‘328 ISP header and the pins on the ’16u2 header. There are already a few samples of what this new firmware for the ’16u2 can do over on [Nico]’s blog, but we’ll expect the number of example projects using this new bootloader to explode over the coming months. If you’re ever in an Arduino Demoscene contest with an Arduino and you’re looking for more pins and code space, now you know where to look.


Filed under: Arduino Hacks
Gen
22

Body of a Trinket, Soul of a Digispark

adafruit, arduino, arduino hacks, bootloader, Digispark, digiStump, Firmware, News, Trinket Commenti disabilitati su Body of a Trinket, Soul of a Digispark 

TrinketDigispark

Adafruit’s Trinket and digiStump’s Digispark board are rather close cousins. Both use an ATtiny85 microcontroller, both have USB functionality, and both play nice with the Arduino IDE. [Ray] is a fan of both boards, but he likes the Trinket hardware a bit better. He also prefers the Digispark libraries and ecosystem. As such, he did the only logical thing: he turned his Trinket into a Digispark. Step 1 was to get rid of that pesky reset button. Trinket uses Pin 1/PB5 for reset, while Digispark retains it as an I/O pin. [Ray] removed and gutted the reset button, but elected to leave its metal shell on the board.

The next step was where things can get a bit dicey: flashing the Trinket with the Digispark firmware and fuses. [Ray] is quick to note that once flashed to Digispark firmware, the Trinket can’t restore itself back to stock. A high voltage programmer (aka device programmer) will be needed. The flashing process itself is quite a bit easier than a standard Trinket firmware flash. [Ray] uses the firmware upload tool from the Micronucleus project. Micronucleus has a 60 second polling period, which any Trinket veteran will tell you is a wonderful thing. No more pressing the button and hoping you start the download before everything times out! Once the Trinket is running Digispark firmware, it’s now open to a whole new set of libraries and software.


Filed under: Arduino Hacks, news
Feb
24

Jual ATMEGA8 + BOOTLOADER Arduino

arduino, Atmel AVR, beli, Booting, bootloader, cara, Elektronika, Firmware, harga, Jualan Commenti disabilitati su Jual ATMEGA8 + BOOTLOADER Arduino 

  Rp. 75.000 (belum ongkir) SMS – 085738244251 Untuk kamu yang hobi dengan elektronika dan ingin sekali belajar tentang mikrokontroller tentunya harus mempelajari yang namanya arduino. Arduino adalah alat yang pas untuk kamu mengenal dengan mudah dunia kontrol di mikro. Namun dengan sulitnya memperoleh arduino tentunya kamu ingin membuat sendiri arduino tersebut. Tentu kamu bisa […]


  • Newsletter

    Sign up for the PlanetArduino Newsletter, which delivers the most popular articles via e-mail to your inbox every week. Just fill in the information below and submit.

  • Like Us on Facebook