<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hobby &#187; atmega1284p</title>
	<atom:link href="https://hobby.farit.ru/tag/atmega1284p/feed/" rel="self" type="application/rss+xml" />
	<link>https://hobby.farit.ru</link>
	<description></description>
	<lastBuildDate>Fri, 27 Feb 2026 07:17:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.39</generator>
	<item>
		<title>Using Atmega1284 with Arduino</title>
		<link>https://hobby.farit.ru/using-atmega1284-arduino/</link>
		<comments>https://hobby.farit.ru/using-atmega1284-arduino/#comments</comments>
		<pubDate>Sun, 21 Jun 2015 06:44:16 +0000</pubDate>
		<dc:creator><![CDATA[Farit]]></dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[atmega1284p]]></category>

		<guid isPermaLink="false">http://hobby.farit.ru/?p=36</guid>
		<description><![CDATA[I downloaded an archive for my selected branch of Arduino (version 1.6.3 at the time of writing). Mighty 1284P: An Arduino core for the ATmega1284P I connected my programmer AVRISP mkII to the ISP header of the board to upload the Arduino bootloader. I also connected the FTDI device to provide the 5V power to [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I downloaded an archive for my selected branch of Arduino (version 1.6.3 at the time of writing).</p>
<p><a href="https://github.com/JChristensen/mighty-1284p" target="_blank">Mighty 1284P: An Arduino core for the ATmega1284P</a></p>
<p>I connected my programmer <a href="http://www.atmel.com/tools/avrispmkii.aspx" target="_blank">AVRISP mkII</a> to the ISP header of the board to upload the Arduino bootloader. I also connected the FTDI device to provide the 5V power to the board; otherwise, programming doesn&#8217;t work.</p>
<p><a href="http://hobby.farit.ru/wp-content/uploads/2015/06/avrisp_atmega1284p_programming.jpg"><img class="alignnone size-medium wp-image-59" src="http://hobby.farit.ru/wp-content/uploads/2015/06/avrisp_atmega1284p_programming-854x679.jpg" alt="avrisp_atmega1284p_programming" width="854" height="679" /></a></p>
<p>I use the variant of the microcontroller pin definitions &#8220;avr_developers&#8221;, also known as &#8220;sanguino&#8221; for my project.</p>
<p>You can find the definitions in the file ~/arduino/hardware/arduino/avr/variants/avr_developers/pins_arduino.h</p>
<pre class="brush: plain; title: ; notranslate">// ATMEL ATmega1284P (should also work for SANGUINO/ATmega644P)
//
//                       +---\/---+
//           (D 0) PB0  1|        |40  PA0 (AI 0 / D31)
//           (D 1) PB1  2|        |39  PA1 (AI 1 / D30)
//      INT2 (D 2) PB2  3|        |38  PA2 (AI 2 / D29)
//       PWM (D 3) PB3  4|        |37  PA3 (AI 3 / D28)
//    PWM/SS (D 4) PB4  5|        |36  PA4 (AI 4 / D27)
//      MOSI (D 5) PB5  6|        |35  PA5 (AI 5 / D26)
//  PWM/MISO (D 6) PB6  7|        |34  PA6 (AI 6 / D25)
//   PWM/SCK (D 7) PB7  8|        |33  PA7 (AI 7 / D24)
//                 RST  9|        |32  AREF
//                 VCC 10|        |31  GND
//                 GND 11|        |30  AVCC
//               XTAL2 12|        |29  PC7 (D 23)
//               XTAL1 13|        |28  PC6 (D 22)
//      RX0 (D 8)  PD0 14|        |27  PC5 (D 21) TDI
//      TX0 (D 9)  PD1 15|        |26  PC4 (D 20) TDO
// INT0 RX1 (D 10) PD2 16|        |25  PC3 (D 19) TMS
// INT1 TX1 (D 11) PD3 17|        |24  PC2 (D 18) TCK
//      PWM (D 12) PD4 18|        |23  PC1 (D 17) SDA
//      PWM (D 13) PD5 19|        |22  PC0 (D 16) SCL
//      PWM (D 14) PD6 20|        |21  PD7 (D 15) PWM
//                       +--------+
//
</pre>
<p>I use my AVRISP mkII programmer to load the bootloader into the microcontroller. I use Atmel AVR Studio (version is 4.19).</p>
<p>I go to Tools -&gt; Program AVR -&gt; Connect. Then I select my programmer.</p>
<figure id="attachment_38" style="width: 526px;" class="wp-caption alignnone"><a href="http://hobby.farit.ru/wp-content/uploads/2015/06/programmer_choice.jpg"><img class="size-full wp-image-38" src="http://hobby.farit.ru/wp-content/uploads/2015/06/programmer_choice.jpg" alt="Selecting a programmer, AVRISP mkII in my case" width="526" height="311" /></a><figcaption class="wp-caption-text">Selecting a programmer, AVRISP mkII in my case</figcaption></figure>
<figure id="attachment_40" style="width: 525px;" class="wp-caption alignnone"><a href="http://hobby.farit.ru/wp-content/uploads/2015/06/bootloader_programming_first.jpg"><img class="size-full wp-image-40" src="http://hobby.farit.ru/wp-content/uploads/2015/06/bootloader_programming_first.jpg" alt="Reading the signature from Atmega1284p" width="525" height="559" /></a><figcaption class="wp-caption-text">Reading the signature from Atmega1284p</figcaption></figure>
<figure id="attachment_43" style="width: 523px;" class="wp-caption alignnone"><a href="http://hobby.farit.ru/wp-content/uploads/2015/06/bootloader_programming.jpg"><img class="wp-image-43 size-full" src="http://hobby.farit.ru/wp-content/uploads/2015/06/bootloader_programming.jpg" alt="Selecting the bootloader hex file, optiboot_atmega1284p.hex in my case." width="523" height="561" /></a><figcaption class="wp-caption-text">Selecting the bootloader hex file, optiboot_atmega1284p.hex in my case. Click on Program to upload the bootloader into the chip.</figcaption></figure>
<figure id="attachment_44" style="width: 524px;" class="wp-caption alignnone"><a href="http://hobby.farit.ru/wp-content/uploads/2015/06/fuses.jpg"><img class="size-full wp-image-44" src="http://hobby.farit.ru/wp-content/uploads/2015/06/fuses.jpg" alt="Program the fuses into the chip." width="524" height="562" /></a><figcaption class="wp-caption-text">Program the fuses into the chip.</figcaption></figure>
<p>Then I copy the files from the downloaded archive into the hardware/arduino/avr/ subdirectory of the installed Arduino directory and add the settings for the avr_developers board into boards.txt.</p>
<pre class="brush: plain; title: ; notranslate">##############################################################

avr_developers.name=avr-developers.com pinouts 16MHz using Optiboot
avr_developers.upload.tool=arduino:avrdude
avr_developers.upload.protocol=arduino
avr_developers.upload.maximum_data_size=16384
avr_developers.upload.maximum_size=130048
avr_developers.upload.speed=115200
avr_developers.bootloader.tool=arduino:avrdude
avr_developers.bootloader.low_fuses=0xf7
avr_developers.bootloader.high_fuses=0xde
avr_developers.bootloader.extended_fuses=0xfd
avr_developers.bootloader.file=optiboot/optiboot_atmega1284p.hex
avr_developers.bootloader.unlock_bits=0x3F
avr_developers.bootloader.lock_bits=0x0F
avr_developers.build.mcu=atmega1284p
avr_developers.build.f_cpu=16000000L
avr_developers.build.core=arduino:arduino
avr_developers.build.variant=avr_developers
avr_developers.build.board=1284P_AVR_DEVELOPERS
</pre>
<p>After that I select this board in the Arduino IDE: Tools -&gt; Board</p>
]]></content:encoded>
			<wfw:commentRss>https://hobby.farit.ru/using-atmega1284-arduino/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino Clock Atmega1284p with MIDI player and Internet</title>
		<link>https://hobby.farit.ru/arduino-clock-atmega1284p-midi-internet/</link>
		<comments>https://hobby.farit.ru/arduino-clock-atmega1284p-midi-internet/#comments</comments>
		<pubDate>Fri, 12 Jun 2015 19:13:51 +0000</pubDate>
		<dc:creator><![CDATA[Farit]]></dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[atmega1284p]]></category>
		<category><![CDATA[clock]]></category>
		<category><![CDATA[midi]]></category>

		<guid isPermaLink="false">http://hobby.farit.ru/?p=13</guid>
		<description><![CDATA[The Arduino Clock uses the C++ object-oriented code written for the Arduino framework is powered by the 8-bit Atmel&#8217;s microcontroller ATmega1284P is installed on the PCB from Wise Clock 4 displays information on the Sure Electronic&#8217;s 32X16 RG Dual Color LED Dot Matrix Unit Board (display colors: red, green, orange) adjusts time from the Internet [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="http://hobby.farit.ru/wp-content/uploads/2015/06/clock_arduino_front.jpg"><img class=" wp-image-52 size-medium" src="http://hobby.farit.ru/wp-content/uploads/2015/06/clock_arduino_front-854x573.jpg" alt="" width="854" height="573" /></a></p>
<h5>The Arduino Clock</h5>
<ul>
<li>uses the C++ object-oriented code written for the Arduino framework</li>
<li>is powered by the 8-bit Atmel&#8217;s microcontroller <a href="http://www.atmel.com/devices/ATMEGA1284P.aspx" target="_blank">ATmega1284P</a></li>
<li>is installed on the PCB from <a href="http://timewitharduino.blogspot.com/search/label/Wise%20Clock%204" target="_blank">Wise Clock 4</a></li>
<li>displays information on the Sure Electronic&#8217;s <a href="http://store.sure-electronics.com/led/de-dp14116" target="_blank">32X16 RG Dual Color LED Dot Matrix Unit Board</a> (display colors: red, green, orange)</li>
<li>adjusts time from the Internet using the NTP protocol via the Wi-Fi <a href="http://www.microchip.com/wwwproducts/Devices.aspx?product=RN171XV" target="_blank">RN-XV WiFly Module</a></li>
<li>shows the weather forecast from the Internet</li>
<li>has alarms that can be configured to activate every day or once on a specific date or tomorrow or on different week days</li>
<li>plays music in the RTTTL format that was popular in mobile phones</li>
<li>plays music in the MIDI format via the <a href="http://moderndevice.com/product/fluxamasynth-shield/" target="_blank">Fluxamasynth Shield</a> that uses the Atmel&#8217;s and Dream&#8217;s ATSAM2195 MIDI chip</li>
<li>changes the brightness of the display depending on the light level in a room detected by the <span class="st">light-dependent resistor</span></li>
</ul>
<h5>A video with the description of the clock menus</h5>
		
		<!-- Begin Video.js Responsive Wrapper -->
		<div style='max-width:854px'>
			<div class='video-wrapper' style='padding-bottom:56.206088992974%;'>
				
	<!-- Begin Video.js -->
	<video id="example_video_id_1003115076" class="video-js vjs-default-skin" width="854" height="480" poster="http://hobby.farit.ru/wp-content/uploads/2015/06/clock_arduino.jpg" controls preload="none" data-setup='[]'>
		<source src="http://hobby.farit.ru/wp-content/uploads/2015/06/arduino_clock.mp4" type='video/mp4' />
		
		
	</video>
	<!-- End Video.js -->

			</div>
		</div>
		<!-- End Video.js Responsive Wrapper -->
		
<h5>Here are the internal devices of the clock</h5>
<h5><a href="http://hobby.farit.ru/wp-content/uploads/2015/06/arduino_clock_inside.jpg"><img class="alignnone size-medium wp-image-62" src="http://hobby.farit.ru/wp-content/uploads/2015/06/arduino_clock_inside-854x704.jpg" alt="arduino_clock_inside" width="854" height="704" /></a></h5>
<h5>Download the code for the clock</h5>
<p>From Github: <a href="https://github.com/faritka/arduino-clock-atmega1284-midi" target="_blank">https://github.com/faritka/arduino-clock-atmega1284-midi</a></p>
]]></content:encoded>
			<wfw:commentRss>https://hobby.farit.ru/arduino-clock-atmega1284p-midi-internet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://hobby.farit.ru/wp-content/uploads/2015/06/arduino_clock.mp4" length="27920027" type="video/mp4" />
		</item>
	</channel>
</rss>
