Possible to use ATmega328 microcontroller instead of Arduino for this wireless communication?

Thread Starter

Snowfish

Joined May 11, 2017
42
Hi
If I have ATmega328 microcontroller connected to a 433 MHz transmitter and another ATmega328 microcontroller connected to a 433 MHz receiver and that I want the transmitter to send few bits every 1 minutes to the receiver wirelessly by itself, I would like to know if this communication idea would work with ATmega328 microcontroller(Arduino UNO's microcontroller) or if I would have to use the complete Arduino UNO to achieve this? If yes, would I still be able to use the same functions as with an Arduino, which one would I lose ?

My project is similar to this one but here they use Arduino UNO:
http://www.instructables.com/id/RF-315433-MHz-Transmitter-receiver-Module-and-Ardu/

Thank you !
 

Papabravo

Joined Feb 24, 2006
18,094
You wouldn't lose any hardware functions, but you will have to write your own firmware from scratch.
You could also build an Arduino clone and keep everything you are used to.
 

Thread Starter

Snowfish

Joined May 11, 2017
42
You wouldn't lose any hardware functions, but you will have to write your own firmware from scratch.
You could also build an Arduino clone and keep everything you are used to.
Thanks, I want something very compact and light. my objective is only to use only ATmega328 microcontroller chip and wires instead of the Arduino or an Arduino clone because the Arduino would be too heavy. Would it still work (chip+wires)?
 

Thread Starter

Snowfish

Joined May 11, 2017
42
You wouldn't lose any hardware functions, but you will have to write your own firmware from scratch.
You could also build an Arduino clone and keep everything you are used to.
Thank you .
Sorry for this newb questions but it would help me a lot to have the answer. When you say that I have to write my own firmware from scratch. Does it mean that I would only have to program the ATmega328 with an AVRISP mkII In-System Programmer or that I would have to do a lot more things ? could you please tell me the definition of writing my own firmware from scratch or if you have an exemple? what would be the tasks of that?
Thank you very much
 

Papabravo

Joined Feb 24, 2006
18,094
Sure. You plan to have some wireless communication modules. You will have to write some functions in C or Assembler that will send and receive messages to and from the wireless modules. I suspect you will also have to write some code for a serial port so you can debug the wireless link. Writing this code is not significantly more difficult than writing a sketch for the Arduino.
 

Thread Starter

Snowfish

Joined May 11, 2017
42
Sure. You plan to have some wireless communication modules. You will have to write some functions in C or Assembler that will send and receive messages to and from the wireless modules. I suspect you will also have to write some code for a serial port so you can debug the wireless link. Writing this code is not significantly more difficult than writing a sketch for the Arduino.
So for the ATmega328 coding and for wirting firmware part, I can only use AVRISP mkII In-System Programmer and nothing else or more than programming skills, right?
 

Papabravo

Joined Feb 24, 2006
18,094
You do have the assembler that is free in AVR Studio. You can probably use a GNU C Compiler for the ATMega328, or can can buy a commercial package like CodeVision. The AVRISP mKII is all you need to program the device. IIRC it had some limitations surrounding how power was delivered to the prototype system.
 
Top