could it work a Attiny85 Runing a Ethernet Shield?

Hello this is a Bit odd question but can a attiny84 or a attiny84 Host a Ethernet shield to run on the internet? is there enough memory for the Ethernet library and sketch to be loaded on the attiny84 or 85 chip? i have seen some post online some place a while back saying there is no spi on the attiny84/85 chips it's a USI what is a USI? it's a shame to use a whole atmega 328p chip when i only need 1 pin for my project and a Ethernet shield. my goal is to run a ethernet shield/module i have both and a temperature sensor.

ATMEL seems to think they put an SPI port in the Tiny45/85 but there are no Arduino libraries.
Maybe (likely) ATMEL has example code on their site since they like to sell the chips.

Same goes with using USI for serial. Arduino serial is written for USART means you can't use Arduino serial, not that serial is impossible!

Sparkfun on ATtiny

No Serial (UART). Yes SPI and I2C.

You may notice, on the listing of special pin functions there are no UART RX’s or TX’s. That’s because the ATtiny85 doesn’t have a built in hardware UART. If you try to compile any Arduino code with Serial.begin(9600)’s or Serial.print()’s you’ll get an error.

So you’re out one of the more useful Arduino debugging tools. You can’t print to the Serial Monitor. But the ATtiny85 does still have I2C and SPI, which are much more commonly used for sensor communication these days. Unfortunately, the Arduino libraries for these interfaces haven’t yet been written for the ATtiny85, but there are some user contributed libraries around the web. USIi2c is an Arduino library which enables I2C on the ATtiny85.

There are other ATtiny85-focused libraries out there too. Like a Servo8Bit, a servo library.

The ATMEL datasheet explains how to get serial with the USI. They probably have example code and it is probably way over beginner use. "You can't get there from here." assumes that you are unable, not the hardware.

If the Tiny can do ethernet, it will probably be via non-standard code.

You might be able to do it with an ESP8266 if you can find a suitable software serial library that will work on a tiny85

Hello GoForSmoke i didn't know if i wanted to do a Ethernet shield or a nrf24l01+ module this is for indoor use only i just wanted to have a network monitor from the first door of the house to the backdoor of the house. But i do have a few nrf modules i can try maybe better then running network wire and settings up addresses and all. i think maybe using the nrf24 modules might work on a attiny85 i have seen somewhere that the attiny84 chips people have used with the nrf24 modules but once again i didn't need all them extra pins. But it might be what i need to do at least not having to use a 328p chip. i found some google searches way down in the search on this subject someone is also trying i will have to check it out. Thank you for the information.

Hello Riva i been looking into that as well the esp8266 i honestly don't need to broadcast it online just from the front door of the house to the backdoor. but i do have 2 of them wireless modules i will have a go at them to see if they will work or the nrf24 modules might work as well. But thank you for the comment you just gave me another idea there to try.

josephchrzempiec:
Hello GoForSmoke i didn't know if i wanted to do a Ethernet shield or a nrf24l01+ module this is for indoor use only i just wanted to have a network monitor from the first door of the house to the backdoor of the house. But i do have a few nrf modules i can try maybe better then running network wire and settings up addresses and all. i think maybe using the nrf24 modules might work on a attiny85 i have seen somewhere that the attiny84 chips people have used with the nrf24 modules but once again i didn't need all them extra pins. But it might be what i need to do at least not having to use a 328p chip. i found some google searches way down in the search on this subject someone is also trying i will have to check it out. Thank you for the information.

I haven't used ethernet with Arduino and not sure, is nrf wireless? Look up also RS485 bus.

Using state machine code it is possible to process serial text data with far less RAM than the usual buffer then process methods. You can keep match words in flash and check data against them as it comes in. it's easier if the match words don't start the same but to get 3 letters of "strchr" matched and the next is an 's', you know the first 3 from the word matched so far to go through the array and find the first match word starting s-t-r-s to continue the match process.
I did that for many years on PC's as part of my user I/O toolkit. Even on a 4MHz 8085 running interpreter BASIC I was able to keep up with matching user entry in between keystrokes and achieve "instant" error handling as opposed to user makes full entry and only then get told about 1 wrong key hit. It gave me the added benefits of less RAM used (the S-100 machine had 32K for BASIC+Code+Data and my job was not writing small demos and examples) and search done almost instantly after the last char correctly entered which on those machines made my code look even better.

Numeric input is easier with integers the easiest. For integers you start with an 'accumulator' set to zero then for every new digit that arrives, multiply the accumulator by ten and add the new value ( = char recieved - '0').

It's not fall over easy to write but then neither is string command text processing once good error handling is added. Once I had it worked out and wrote a second and third version, to me it became easier than manipulating buffers but that was hindsight. While writing, the goal of fast on slow machines was the carrot I chased. For you on a chip with 512 bytes RAM, it would be "make this fit".

OTOH if you buy 20+ 328P-PU from some sources they get below $2 each and they have 4x the RAM. That may be worth not using most of the pins.

Can you describe your project in more detail. You say you need a network monitor from first door to back door but what does this mean. Do you want to connect to or monitor wi-fi network from these locations or check the locations are getting wi-fi or maybe just monitor if either door is opened?

Well my project is that just Simple. to have a temperature and humidity sensor like the dht11 or dht22 i have both i was going to set one up by the front door and one by the back door because it gets cold here at night time. basically all needs is 1 pin a digital pin The nrf24l01+ module is a 2.4ghz wireless module it doesn't interact with wifi like the ESP8266 does. the nrf24l01 is a transceiver it can send and receive data. but for this project it will transmit the dht11 information. yes i will have 3 of the one for the front door and one for the backdoor and one in the middle receiving the information of both. But the thing is i honestly don't need a atmega 328p chip there are a lot of pins and honestly i ant going to be using it for nothing else. However i do have attiny84/ attiny85 chips a few of them was thinking of using them for this project.

middle one receiving it will go to a desktop pc the desktop one will have a pro mini board because I'm also going to log the temperature/Humidity sensor on a Sd card.

The personal weather stations with outdoor sensors usually use something like this simple transmitter that only needs a single RX/TX pin. Might be worth trying to emulate the same sort of setup/protocol the weather stations use. I have attached a simple decode program I wrote for someone on here a couple of years ago and the transmitter side will be less complex. I cannot remember the make/model of sender unit they was using but hopefully it will give you ideas.

WeatherRF2.ino (6.7 KB)

Riva yes the 433mhz ones will be great But i have the nrf24 modules all ready might as well use them right.

josephchrzempiec:
Riva yes the 433mhz ones will be great But i have the nrf24 modules all ready might as well use them right.

If you have all the bits then you may as well try it. Not sure if you will have enough pins though on the tiny85. Time will tell.

Lot of info on the Nrf24L01 radios including software links.
http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo

And a library for DHT sensors with link to ATtiny85 thread:
http://playground.arduino.cc/Main/DHTLib

Riva i have found this http://nathan.chantrell.net/20130810/experimenting-with-the-nrf24l01-2-4ghz-radios/ I'm looking into this now. and go for smoke i do know the DHT11 i have it setup before thank you for the links and the nrf24 modules i been playing with for a while also.