#ATtiny167
Explore tagged Tumblr posts
draegerit · 5 years ago
Text
Microcontroller ATtiny167
Tumblr media
In diesem Beitrag möchte ich den Microcontroller ATtiny167 vorstellen. 
Tumblr media
Microcontroller ATtiny167 Vor kurzem habe ich den Beitrag zum ATtiny85 - ATtiny85 mit dem Arduino UNO beschreiben veröffentlicht. Der Vorteil des ATtiny167 ist das dieser mit einer USB Micro Buchse und einem USB-to-Serial Converter daherkommt. Somit entfĂ€llt das doch etwas lĂ€sstige Programmieren ĂŒber einen externen Programmer (wie man ihn fĂŒr den ATtiny85 benötigt).
Bezug
Den kleinen Microcontroller ATtiny167 bekommt man fĂŒr knapp 3€ aus China auf eBay.de oder wer etwas mehr investieren möchte kann diesen auch ĂŒber einen deutschen HĂ€ndler fĂŒr knapp 6€ erwerben. Bei einem HĂ€ndler aus dem asiatischen Raum muss man immer die lange Lieferdauer einrechnen, diese ist bei einem deutschen HĂ€ndler natĂŒrlich deutlich kĂŒrzer dafĂŒr zahlt man etwas mehr. Lieferumfang Dem Microcontroller lag neben der Platine auch 2x 9 Pin Stiftleisten im Rastermaß von 2,54mm bei.
Tumblr media
Lieferumfang des ATtiny167
Technische Daten des ATtiny167
Microcontroller - ATtiny167 Taktfrequenz - 16 MHz (8bit) Ein / AusgĂ€nge Gesamt - 14 digitale Pins - 14 digitale PWM Pins - 3 analoge Pins - 11 AnschlĂŒsse IÂČC, SPI, UART, LIN und USI  Speicher SRAM - 512 Byte EEPROM - 512 Byte Flash Speicher - 16 KB Strom & Spannung Betriebsspannung - 5V/DC ĂŒber USB oder VIN Pin max. Strom per IO Pin - 40mA Abmaße (L x B x H ) -  26,7mm x 18,3mm x 4mm Gewicht - 4g FĂŒr so einen Zwerg ist das ganzschön viel und meinen 16MHz kann dieser locker mit einem Arduino Nano V3 mithalten.
Pinout des Microcontrollers ATtiny167
Tumblr media
Pinout des Microcontrollers ATtiny167
Aufbau
Bevor ich mit der Entwicklung / Programmierung beginne löte ich zunÀchst die Pins an den Microcontroller an. Hierzu nutze ich zusÀtzlich noch 3 Pins um VCC, GND und VIN nach OBEN abzuleiten.
Installation der Treiber
Bevor man mit der Einrichtung in der Arduino IDE beginnen kann, muss man den Treiber installieren. Den aktuellen Treiber findest du unter https://github.com/micronucleus/micronucleus. 
Tumblr media
Download des GitHub Repository als ZIP Datei - micronucleus Im Browser findest du rechts die SchaltflĂ€che "Clone or downdload" (1), dort kannst du das komplette Repository als ZIP Datei herunterladen (2). Nachdem die ZIP Datei herunterladen und entpackt wurde. Wird der Ordner "micronucleus-master\windows_driver_installer" geöffnet und die Datei "zadig_2.1.2.exe" mit einem doppelklick geöffnet. In dem neuen Fenster wird nun ĂŒber das HauptmenĂŒ "Device" > "Load Preset Device" die Konfigurationsdatei fĂŒr den "digistump Microcontroller" geöffnet und die SchaltflĂ€che "Install Driver betĂ€tigt. Wenn der Treiber erfolgreich installiert wurde dann wird dieser im GerĂ€te-Manager von Windows wie folgt angezeigt.
Tumblr media
installierter Treiber fĂŒr den digistump Microcontroller
Einrichten in der Arduino IDE
Nachdem der Treiber erfolgreich installiert wurde muss als nĂ€chstes der Treiber fĂŒr die Arduino IDE installiert werden. ZunĂ€chst jedoch muss der Ort der Treiber der Liste der "Liste der zusĂ€tzlichen Boardverwalter URLs" hinzugefĂŒgt werden. Diese findet man ĂŒber "Datei" > "Voreinstellungen". Nun muss die Adresse "http://digistump.com/package_digistump_index.json" hinzugefĂŒgt werden und es kann dann ĂŒber den Boardverwalter nach dem Begriff "digistump" (1) gesucht werden. Der erste Eintrag ist hier auch gleich der richtige welchen wir installieren (2) möchten. 
Tumblr media
installieren der Treiber fĂŒr den ATtiny167 ĂŒber den Boardverwalter der Arduino IDE Wenn der Treiber installiert wurde kann der Dialog ĂŒber die SchaltflĂ€che "Schließen" (3) wieder verlassen werden. Nun sollte unter den Boards ein weiter Abschnitt erscheinen.
Tumblr media
Digistump Boards FĂŒr das Board "ATtiny167" wĂ€hle ich "Digispark Pro (Default 16 MHz)" aus.
Beispiel
Im ersten kleinen Beispiel werde ich die Build-In-Led zum blinken bringen. Diese kleine SMD LED ist am digitalen Pin 1 angeschlossen. #define buildInLed 1 void setup() { pinMode(buildInLed, OUTPUT); } void loop() { digitalWrite(buildInLed, HIGH); delay(500); digitalWrite(buildInLed, LOW); delay(500); } FĂŒr den Upload des Sketches auf den ATtiny167 muss man in der Arduino IDE die SchaltflĂ€che "Hochladen" betĂ€tigen, bzw. die Tastenkombination Strg+U. In der Konsole wird dann folgendes Angezeigt: Der Sketch verwendet 4548 Bytes (30%) des Programmspeicherplatzes. Das Maximum sind 14844 Bytes. Globale Variablen verwenden 73 Bytes des dynamischen Speichers. Running Digispark Uploader... Plug in device now... (will timeout in 60 seconds) Nun muss die Taste Reset des ATtiny167 betĂ€tigt werden und der Upload beginnt von alleine.
Tumblr media
Reset Taster am ATtiny167 Nachdem Upload des Sketches wird in der Konsole der Arduino IDE sehr viel Informationen zum Upload angezeigt. Der Sketch verwendet 912 Bytes (6%) des Programmspeicherplatzes. Das Maximum sind 14844 Bytes. Globale Variablen verwenden 9 Bytes des dynamischen Speichers. Running Digispark Uploader... Plug in device now... (will timeout in 60 seconds) > Please plug in the device ... > Press CTRL+C to terminate the program. > Device is found! connecting: 16% complete connecting: 22% complete connecting: 28% complete connecting: 33% complete > Device has firmware version 2.2 > Device signature: 0x1e9487 > Available space for user applications: 14842 bytes > Suggested sleep time between sending pages: 7ms > Whole page count: 116 page size: 128 > Erase function sleep duration: 812ms parsing: 50% complete > Erasing the memory ... erasing: 55% complete erasing: 60% complete erasing: 65% complete > Starting to upload ... writing: 70% complete writing: 75% complete writing: 80% complete > Starting the user app ... running: 100% complete >> Micronucleus done. Thank you!
Fazit
Der kleine Microcontroller ATtiny167 lĂ€ĂŸt sich mit etwas vertretbaren Aufwand einrichten und kann danach wie jeder andere Microcontroller aus der Arduino IDE angesprochen und programmiert werden. Read the full article
0 notes
geekmusthave · 8 years ago
Text
GMH 040 Postbag Soldering Pad, ATTiny167, ATMega32U4, ESP8266, Mega 2650
GMH 040 Postbag Soldering Pad, ATTiny167, ATMega32U4, ESP8266, Mega 2650
The Adafruit package will be opened in another Postbag video.
Soldering Pad Heat-resistant Heat Gun BGA Soldering Station Repair Insulation Insulator Pad Desk Mat Maintenance For Platform $4.54
https://www.aliexpress.com/item/Soldering-Pad-Heat-resistant-Heat-Gun-BGA-Soldering-Station-Repair-Insulation-Insulator-Pad-Desk-Mat-Mainten

View On WordPress
0 notes
nerfarmourer · 8 years ago
Text
Recommissioning Katarina Pt1
My Stampede was 6 years old yesterday. It’s been a long while but I’ve been looking at rebooting it for 2017 and beyond. I had FDS do the paintwork and I’ll do the internals. I’ve put in upgraded gears from LZ Mods, a BSUK Stampede upgrade kit, 6kg spring and a 3S LiPo. Well, that’s a bit standard. There are many Stampedes out there with similar or identical builds so I thought I’d go for something different.
Tumblr media
Parts for the electronics arrived this morning. Devcon shown for scale (and probably because I’ll need some to mount things with.
Tumblr media
The plan is to have a motion sensitive set of lights in the magazine well around the mechanism and at the front where the grilles are. The Stampede has a lovely length to it that makes putting an accelerometer in the forward section worthwhile.
From front to back:
Tumblr media Tumblr media Tumblr media
I’m using 8 unit WS2812//WS2811 boards, sold by Adafruit as Neopixels. Essentially, they are a programmable RGB LED capable of ~16million colours driven by a PWM signal. Like most electronics enthusiasts, I’m lazy and use an Arduino and the Adafruit library to drive them rather than running the timing signals myself.
The forward section also contains a GY-61 3-axis accelerometer. This chip uses some serious voodoo silicon to produce 3 outputs (x,y and z) between 0 and 5V depending on the g force on that axis. It has a relative range of -3g through to +3g. That should be more than enough for my needs. The final effect will be a purple colour that goes more red as it moves from side to side and more blue the more up down it goes.
Finally we reach the back and the control board. For this build I’m using an Arduino Nano and its ATMEGA328P 16HZ microprocessor. It’s a touch overkill for this build (I could have used an ATTiny167) but it gives me a bit of head room if I want to do more sophisticated effects in software later. I plan to solder straight to the  board with this one. The board is sited at the rear of the blaster for accessibility to its on-board USB port. I might change that if the wiring becomes difficult to route. Ideally, I want to test EMF suppression on long leads with ferrite beads and capacitors for later builds. A Stampede provides a better test-bed for proof of concept before I move over to the radiation hell storm that is a flywheeler.
All parts are linked above and I will be publishing the code and circuit diagrams for this going forward. However, I won’t be unveiling the paintwork until it’s all done. ;)
4 notes · View notes
draegerit · 5 years ago
Photo
Tumblr media
Serielle Verbindung zwischen einem ATtiny167 und einem Arduino Nano Damit spÀter die Sensorwerte auf dem seriellen Monitor der Arduino IDE ausgegeben werden können muss man sich mit einem zusÀtzlichen Microcontroller behelfen. #attiny167 #arduino #arduinoproject #arduinonano #serialconnection #maker #electronic #components #diy #tech #techy #technology #DraegerIT (hier: Stefan Draeger Software) https://www.instagram.com/p/B6k4nwVISqE/?igshid=17k17z67qub2b
0 notes
draegerit · 5 years ago
Photo
Tumblr media
Aufbau des Microcontrollers ATtiny167. #attiny167 #microcontroller #electronic #components #diy #tech #techy #technology #DraegerIT (hier: Stefan Draeger Software) https://www.instagram.com/p/B6iMcUxIyt2/?igshid=1oye7h8giehjq
0 notes
draegerit · 5 years ago
Photo
Tumblr media
ATtiny167 #attiny167 #microcontroller #electronic #components #diy #tech #techy #technology #DraegerIT (hier: Stefan Draeger Software) https://www.instagram.com/p/B6fSPaSoMi4/?igshid=m1fimj533x2n
0 notes
draegerit · 5 years ago
Photo
Tumblr media
NĂ€chstes Projekt fĂŒr nach die Feiertage. Ein Infrarot Thermometer mit Display. Das GehĂ€use kommt selbst erstellt aus dem 3DDrucker. #arduino #arduinoproject #attiny167 #oled #gy906 #infrarotthermometer #maker #electronic #components #diy #tech #techy #technology #DraegerIT (hier: Stefan Draeger Software) https://www.instagram.com/p/B6fQQCZIRp5/?igshid=8zkd9u9x5siv
0 notes
draegerit · 5 years ago
Video
instagram
Kapazitiver Touch Sensor am ATtiny167 #attiny167 #led #touchsensor #capacitivetouch #maker #electronic #components #diy #tech #techy #technology #coding #programming (hier: Stefan Draeger Software) https://www.instagram.com/p/B6nTff2IpfK/?igshid=1sntq6tho1z5t
0 notes
draegerit · 5 years ago
Video
instagram
Serielle Kommunikation zwischen zwei Microcontroller mit Ausgabe von Werten auf dem seriellen Monitor der Arduino IDE. #arduino #arduinoproject #arduinonano #attiny167 #serialconnection #maker #diy #tech #techy #technology #DraegerIT (hier: Stefan Draeger Software) https://www.instagram.com/p/B6k820yo5jA/?igshid=k4iye0eusk17
0 notes