i want to write some data into atmega 32 and then show that value on a webpge.

Go To Last Post
43 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Iam using a AVR Ethernet IC board and following is the link for all the files required.Can someone please help me with it.Working on this for the 1st time. Im using a similar kit which came with the same code given in the link.

Thank you.

 

 

Link:: http://www.embeddedmarket.com/st...

Last Edited: Mon. Mar 30, 2015 - 04:28 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So you've got the board, and you've got "all the files required" - what help, exactly, do you need?

 

To understand the basics of HTTP (which is what web servers use), see: http://www.jmarshall.com/easy/http/

 

In fact, you should probably look at the other technologies here, too: http://www.jmarshall.com/easy/

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I Want to make changes in the code..The given code just shows Avr IP on the webpage..i have just modified how the webpage looks like..I want to connect a meter through rs232 which will give parameters like voltage ,frequency etc..I want to store these parameters in the controller memory and then make this data available on webpage when a request is made on webpage.

Thank you

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Tarun93 wrote:
Working on this for the 1st time.

What, exactly, are you "working on" for the "1st time"?

  • Webservers?
  • Any form of internet connection?
  • AVR specifically?
  • Any form of microcontroller at all?
  • Programming in general?
  • Programming in 'C'?

 

Tarun93 wrote:
The given code just shows Avr IP on the webpage

So take that as your model: instead of putting in the IP address, put in an arbitrary variable; populate that variable from data received via RS232.

 

Quote:
I want to connect a meter through rs232

Do you have experience doing serial comms on the AVR?

 

If not, get that working first before adding the complication of TCP/IP, HTTP, web pages, etc...

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Programming in general on this kit for 1st time.I have worked on 8051,8085 on assembly but not on 'C'.

I could create links like "Get Voltage" on the webpage and when u click on it an led glows.But im not able to figure out how to access a memory location on clicking that link.

Never worked on serial communication.The meter has rx and tx pins(rs485). They will be connected to a converter 485 to 232 and then connected to rx tx pins on the board. Is this correct?

Will I need a code to accept the data? How to write into a memory location then?

thank you

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You really need to start from the basics: 

 

Microcontroller development: https://www.avrfreaks.net/comment...

 

AVRFreaks Turorials: https://www.avrfreaks.net/forums/...

 

'C' programming: http://blog.antronics.co.uk/2011...

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Sat. Mar 28, 2015 - 03:43 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Im now able to write things on Lcd..Can u tell me the instructions for reading or writing the memory?

And in which memory can we store or write data.

Thank you

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You need to learn how to use variables in your programming.

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can u send me a link for that?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That would be any basic tutorial or textbook on 'C' programming - see the links I gave earlier.

 

For learning 'C' programming, it is probably easier to set the microcontroller aside for a while and learn on the PC - there are plenty of free PC toolsets available...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Im aware of basics of C..its just that iam not able to find instructions for reading or writing memory..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The whole point of a High-Level Language (HLL) like 'C' is that you don't have to worry about low-level details like "reading or writing memory" - you use variables to hold your data.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Any chance a Moderator could move this Thread?

 

Thanks,

 

JC

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

But where to, exactly?

 

  • We don't know that the target is not a Mega or Tiny AVR - but agree that the discussion so far is not specific to any target;
  • It's not a Tools question;
  • It's not a general electronics question.

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:
The whole point of a High-Level Language (HLL) like 'C' is that you don't have to worry about low-level details like "reading or writing memory" - you use variables to hold your data.

So why, exactly, do you feel the need for "reading or writing memory" in this application?

 

http://www.catb.org/esr/faqs/sma...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I would have thought that this thread is in the correct forum.

 

What is the mystery: "I have worked on 8051,8085 on assembly but not on 'C'."

 

Whereas 8051 is still very much alive and well,   I doubt if any 8085 chips are still used.

 

If you are not familiar with 'C',   I suggest that you do lots of tutorials on the PC first.

Blinking an LED on an AVR is fairly practical.   Developing a Web Server as your first C project is too complex.

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

//********************************************************************************************
//
// File : lcd.c implement for 16x2 LCD module
//
//********************************************************************************************
//
// Copyright (C) 2007
//
// This program is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software
// Foundation; either version 2 of the License, or (at your option) any later
// version.
// This program is distributed in the hope that it will be useful, but
//
// WITHOUT ANY WARRANTY;
//
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along with
// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin St, Fifth Floor, Boston, MA 02110, USA
//
// http://www.gnu.de/gpl-ger.html
//
//********************************************************************************************
#include "includes.h"
//********************************************************************************************
//
// Function : lcd_send_nibble
// Description : Send data (nibble) to lcd module
//
//********************************************************************************************
void lcd_send_nibble(unsigned char data)
{
    data &= 0xF0;
    LCD_DATA_PORT &= 0x0F;
    LCD_DATA_PORT |= data;
    _delay_us(1);    // 1us
    LCD_CONTROL_PORT |= _BV(LCD_EN_PIN);
    _delay_us(2);
    LCD_CONTROL_PORT &= ~_BV(LCD_EN_PIN);
}
//********************************************************************************************
//
// Function : lcd_send_byte
// Description : Send data (byte) to lcd module
//
//********************************************************************************************
void lcd_send_byte( char data_or_cmd, char data )
{
    LCD_CONTROL_PORT &= ~_BV(LCD_RS_PIN);
    if(data_or_cmd)
        LCD_CONTROL_PORT |= _BV(LCD_RS_PIN);
    else
        LCD_CONTROL_PORT &= ~_BV(LCD_RS_PIN);
    _delay_us(50);        // 1us
    LCD_CONTROL_PORT &= ~_BV(LCD_EN_PIN);
    lcd_send_nibble(data & 0xF0);
    lcd_send_nibble(data << 4);
}
//********************************************************************************************
//
// Function : lcd_init
// Description : Lcd module initiation.(4-bits mode)
//
//********************************************************************************************
void lcd_init(void)
{
    char i;
    LCD_DATA_DDR |= (_BV(LCD_D7) | _BV(LCD_D6) | _BV(LCD_D5) | _BV(LCD_D4));
    LCD_CONTROL_DDR |= (_BV(LCD_RS_PIN) | _BV(LCD_RW_PIN) | _BV(LCD_EN_PIN));

    LCD_DATA_PORT &= ~(_BV(LCD_D7) | _BV(LCD_D6) | _BV(LCD_D5) | _BV(LCD_D4));
    LCD_CONTROL_PORT &= ~(_BV(LCD_RS_PIN) | _BV(LCD_RS_PIN) | _BV(LCD_RS_PIN));
    
    _delay_ms(15);        // 15 ms
    for(i=1;i<=3;++i)
    {
       lcd_send_nibble(0x30);
       _delay_ms(5);    // 5 ms
    }
    lcd_send_nibble(0x20);
    lcd_send_byte(WRITE_COMMAND, SET_FUNCTION);
    lcd_send_byte(WRITE_COMMAND, DISPLAY_ON);
    lcd_send_byte(WRITE_COMMAND, DISPLAY_CLR);
    lcd_send_byte(WRITE_COMMAND, ENTRY_MODE);
}
//********************************************************************************************
//
// Function : lcd_gotoxy
// Description : Send SET_DDRAM command to lcd module
//
//********************************************************************************************
void lcd_gotoxy( unsigned char x, unsigned char y)
{
    char address=0;

    if(y!=1)
        address = LCD_LINE_TWO;
    address += x-1;
    lcd_send_byte(WRITE_COMMAND, SET_DDRAM|address);
}
//********************************************************************************************
//
// Function : lcd_putc
// Description : Send data(byte) or command to lcd module
// '\f' is clear display command
// '\n' is new line (second line) command
// '\b' is cursor back command
//
//********************************************************************************************
void lcd_putc( unsigned char c)
{
    if(c == '\f')
    {
        lcd_send_byte(WRITE_COMMAND, DISPLAY_CLR);
        _delay_ms(2);    // 2ms
    }
    else if(c == '\n')
        lcd_gotoxy(1, 2);
    else if(c == '\b')
        lcd_send_byte(WRITE_COMMAND, CURSOR_BACK);
    else
        lcd_send_byte(WRITE_DATA, c);
}
//********************************************************************************************
//
// Function : lcd_print
// Description : print string from ram to lcd module
//
//********************************************************************************************
void lcd_print( BYTE *ptr )
{

    while( *ptr )
    {
        lcd_putc(*ptr++);
    }
}
//********************************************************************************************
//
// Function : lcd_print_p
// Description : print string from program memory to lcd module
//
//********************************************************************************************
void lcd_print_p( PGM_P ptr )
{
    unsigned char c;

    while( (c = pgm_read_byte ( ptr++ )) )
    {
        lcd_putc(c);
    }
}

 

 

 

This is my lcd.c program...If I want to display any content of memory location onto lcd what should i do?

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Why are you still fixated on this thing about "memory locations" ?!

 

You read/receive your data into some suitable variable(s), and you print the content of those variable(s).

 

You said you are "aware of basics of C" - it doesn't get much more basic than this!

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

A recent cross post of some relevance...

 

https://www.avrfreaks.net/comment...

 

I am intrigued that he says:

Im aware of basics of C..its just that iam not able to find instructions for reading or writing memory..

Exactly how more "basic" do things get in C than knowing that:

int x;

int main(void) {
  x = 12345;
}

will write 12345 to a memory location called "x" ?

If I want to display any content of memory location onto lcd what should i do?

Given my example code I guess that  would be something like:

#include <stdio.h>
#include "lcd.h" 

int x;
char buffer[20];

int main(void) {
  lcd_init();
  x = 12345;
  sprintf(buffer, "x = %d", x);
  lcd_print(buffer)
}

x is the label of some location in memory - this displays what is being held in the two bytes (sizeof int) there.

 

If you really meant how do I display the contents of ANY location in memory:

#include <stdio.h>
#include "lcd.h" 

unsigned char * p;
char buffer[20];

int main(void) {
  lcd_init();
  p = (unsigned char *) 147;
  sprintf(buffer, "location %d holds 0x%02X", 147, *p);
  lcd_print(buffer)
}

That will show you what location 147 (in RAM) is holding as two hex digits.

 

But really, in C, you don't make access to absolute memory addresses. You just create and name variables then you write to them using = and read from them by referring to them by name and you aren't usually aware of exactly what location in memory they are actually being stored at - this is fundamental to all C programming.

 

I cannot help thinking that it's something else you are trying to achieve but maybe you are just having a problem in posing the question to ask whatever it is you really want to achieve?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I actually wanted to get the data from a meter serially. So I wanted to access the buffer register of USART and store it in a variable. Which Iam able to do now. Thanks a lott. Working on your inputs to display on LCD..Thank You.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My main aim is to display the data coming from the meter to a static webpage which is hosted by ATmega32. Im not very sure whether I will be able to display a variable into it or whether I should write this variable into the EEPROM and then make this data available on the webpage. (The kit is connected to a PC using RJ45 cable).

Thank you

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I should write this variable into the EEPROM

Well only do that if the device is going to be unpowered between the point that the value is read and the point that you want to display it - otherwise you will just wear out the EEPROM memory needlessly (each location can only be written 100,000 times).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The data coming from the meter is 64 bit long and the serial buffer is 8 bit..hence im thinking of putting the data into eeprom and then displaying it on webpage..

Is there any program to check serial communication with avr.??

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

this is the format required for communicating with the meter..

 

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is a small code which i wrote and tried to single step..BUT whenever I call UART_trans with UART_trans(50); the UDR data does not get the value 50..It remains 0..What will be the problem?

 

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is this February 2nd all over again? They should remake Bill Murray in GroundHog Day and call it "GroundHog Day at AVRfreaks" and every morning we look at the forum, and young enthusiastic microcontroller programmers from every continent on earth have logged on to aks the freaks how do I initialize my serial port? How do I send a character? How do I initialize my text lcd? How do I send letters and numbers? Now how do I convert binary numbers into characters? I need to read a varying voltage. Fom +10 to -10. Do I just plug that into the a/d converter? What datasheet? Someone wrote a datasheet? Got a link for that? And one more thing. PWM. I heard I can use that to dim my leds. Got a program that does that for modelXXX avr using modelYYY compiler, and I want all the timing stuff already adjusted to run at my selected clock frequency of ZZZ that is different from the example I linked to. And I need it by Friday cuz thats when we turn in our Final Project. And color graphics and animation on an lcd.

 

If you can edit, compile, burn and run all those ethernet files in that project, I think you are well on your way to success. Many of the avrfreaks will help get the serial multimeter stuff working (64 bits is 8 bytes. Just read all 8 bytes that the meter sends). A voltage reading webserver is a good project.

Imagecraft compiler user

Last Edited: Fri. Apr 3, 2015 - 03:37 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

Why would you want to wear out your EEPROM just to hold 7 of the bytes in a uint64_t? This is why God invented RAM.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The protocol for talking to the meter looks suspiciously like modbus rtu. Freemodbus comes to mind.

Last Edited: Fri. Apr 3, 2015 - 11:17 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The protocol is modbus RTU..I don't understand how to send the query to the meter..Should I send it in hex ? And whenever I send any data by calling my UART_trans function I observe that the UDR register is not getting the value..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The meter was connected to laptop and using modscan32 program we were able to read the input registers..But I want to know how exactly the query is send and how are we getting the voltage back from meter..
I even used hyperterminal program to check this..but when I send the data in the format needed by the meter (attached as a pic in above post)we are not able to receive anything

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is what I can see when connecting the meter to PC and running modscan32..the white part is the query and the dark one is the response..The response is correct wrt the query..
Now I want to do this using my microcontroller.. How to go about it??

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Didn't i mention freemodbus? This is a library that implements modbus.
You can easily see the values that are sent and received on modscan. Write some code to send those values out the uart and you should see a response.
I just did a quick Google, look at what i found:
http://www.tuxgraphics.org/electronics/201002/avr-web-to-modbus-tcp.shtml

Last Edited: Sun. Apr 5, 2015 - 02:45 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Should I add those libraries to my project??

Did u have a look at my code??

Is there anything missing in that?

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 UART initialization

    void UART_init(unsigned int baud)
    {
    UBRRH=(unsigned int)(baud>>8);
    UBRRL=(unsigned int)baud;
    UCSRB=(1<<RXEN)|(1<<TXEN);
    UCSRC=(1<<URSEL)|(1<<USBS)|(3<<UCSZ0);
    }

    void UART_trans(unsigned char data)
    {
    while( !(UCSRA & 1<<UDRE));
    UDR=data;
    }

 

    unsigned char UART_receive(void)
    {
    while( !(UCSRA & 1<<RXC));
    return UDR;
    }

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You'll need a bit more code than that!
Did you research freemodbus?
Did you look at the code from tuxgraphics?
All your answers are there.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The code from Tuxgraphics has complications of webserver which i dont want now..And the given code is for 328p and not Atmega32...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Errr..... Your title says you want to show the value on a webpage. As for the difference between a mega328 and a mega32, how do you think that might affect the code?
i gather you don't want to put too much effort into this endeavor. If you want an 'off the shelf' solution, there is plenty of commercial products that will do exactly what you want.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Tarun93 wrote:
The code from Tuxgraphics has complications of webserver which i dont want

 

Kartman wrote:
Errr..... Your title says you want to show the value on a webpage.

My thoughts exactly!

 

indecision

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Maybe there should be a way for folks that want to commision a custom program from a microcontroller programmer to advertise for a programmer? Maybe the customer could post a program spec in the for sale forum? Make sure you specify everything! I'd work on a program for a couple of hrs if I got a good spec. I'll send the hex, you paypal the fee, then I'll send the c source. Would that work?

 

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

https://www.elance.com/

 

https://www.freelancer.com/

 

 

bobgardner wrote:
the customer could post a program spec in the for sale forum? Make sure you specify everything!

The ability to specify the requirement is, all too often, a stumbling block.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Iam done with the web page part and dont want further complications in that..I have finalized the webpage and its working fine..Im putting some voltage values in variable and it is getting displayed on webpage..SO I would appreciate some help in MODBUS part.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What part of freemodbus don't you understand?
Have you downloaded the specs from modbus.org?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Tarun93 wrote:
Iam done with the web page part and dont want further complications in that

So start a new thread on this new topic, then!

 

You can give a link back to (and from) this thread...

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...