-
-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not a problem just a question (ATtiny85) #43
Comments
@Sn0ff it should work, I haven't tested myself though. Please try it out and let us know. |
Hello, i am trying to get this library to run over attiny85. but i've no clue about so many errors. perhaps some help could solve the problems: C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\XYZ\AppData\Local\Arduino15\packages -hardware C:\Users\XYZ\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\XYZ\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\XYZ\Documents\Arduino\libraries -fqbn=digistump:avr:digispark-tiny -ide-version=10805 -build-path C:\Users\XYZ\AppData\Local\Temp\arduino_build_484936 -warnings=none -build-cache C:\Users\XYZ\AppData\Local\Temp\arduino_cache_914940 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\XYZ\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5 -prefs=runtime.tools.micronucleus.path=C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\tools\micronucleus\2.0a4 -verbose C:\Users\XYZ\Documents\Arduino\LoRaSender\LoRaSender.ino
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h: In member function 'void SPISettings::init_AlwaysInline(uint32_t, uint8_t, uint8_t)': C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:146:16: error: 'SPE' was not declared in this scope
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:146:27: error: 'MSTR' was not declared in this scope
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:146:65: error: 'DORD' was not declared in this scope
In file included from C:\Users\XYZ\Documents\Arduino\libraries\arduino_912086\src/LoRa.h:5:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h: In static member function 'static void SPIClass::beginTransaction(SPISettings)': C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:203:5: error: 'SPCR' was not declared in this scope
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:204:5: error: 'SPSR' was not declared in this scope
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h: In static member function 'static uint8_t SPIClass::transfer(uint8_t)': C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:209:5: error: 'SPDR' was not declared in this scope
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:217:14: error: 'SPSR' was not declared in this scope
In file included from c:\users\xyz\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5\avr\include\avr\io.h:99:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:217:25: error: 'SPIF' was not declared in this scope
In file included from C:\Users\XYZ\Documents\Arduino\libraries\arduino_912086\src/LoRa.h:5:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h: In static member function 'static uint16_t SPIClass::transfer16(uint16_t)': C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:223:11: error: 'SPCR' was not declared in this scope
In file included from c:\users\xyz\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5\avr\include\avr\io.h:99:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:223:22: error: 'DORD' was not declared in this scope
In file included from C:\Users\XYZ\Documents\Arduino\libraries\arduino_912086\src/LoRa.h:5:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:224:7: error: 'SPDR' was not declared in this scope
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:226:16: error: 'SPSR' was not declared in this scope
In file included from c:\users\xyz\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5\avr\include\avr\io.h:99:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:226:27: error: 'SPIF' was not declared in this scope
In file included from C:\Users\XYZ\Documents\Arduino\libraries\arduino_912086\src/LoRa.h:5:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:230:16: error: 'SPSR' was not declared in this scope
In file included from c:\users\xyz\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5\avr\include\avr\io.h:99:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:230:27: error: 'SPIF' was not declared in this scope
In file included from C:\Users\XYZ\Documents\Arduino\libraries\arduino_912086\src/LoRa.h:5:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:233:7: error: 'SPDR' was not declared in this scope
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:235:16: error: 'SPSR' was not declared in this scope
In file included from c:\users\xyz\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5\avr\include\avr\io.h:99:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:235:27: error: 'SPIF' was not declared in this scope
In file included from C:\Users\XYZ\Documents\Arduino\libraries\arduino_912086\src/LoRa.h:5:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:239:16: error: 'SPSR' was not declared in this scope
In file included from c:\users\xyz\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5\avr\include\avr\io.h:99:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:239:27: error: 'SPIF' was not declared in this scope
In file included from C:\Users\XYZ\Documents\Arduino\libraries\arduino_912086\src/LoRa.h:5:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h: In static member function 'static void SPIClass::transfer(void*, size_t)': C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:247:5: error: 'SPDR' was not declared in this scope
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:250:16: error: 'SPSR' was not declared in this scope
In file included from c:\users\xyz\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5\avr\include\avr\io.h:99:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:250:27: error: 'SPIF' was not declared in this scope
In file included from C:\Users\XYZ\Documents\Arduino\libraries\arduino_912086\src/LoRa.h:5:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:255:14: error: 'SPSR' was not declared in this scope
In file included from c:\users\xyz\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5\avr\include\avr\io.h:99:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:255:25: error: 'SPIF' was not declared in this scope
In file included from C:\Users\XYZ\Documents\Arduino\libraries\arduino_912086\src/LoRa.h:5:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h: In static member function 'static void SPIClass::setBitOrder(uint8_t)': C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:292:31: error: 'SPCR' was not declared in this scope
In file included from c:\users\xyz\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5\avr\include\avr\io.h:99:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:292:43: error: 'DORD' was not declared in this scope
In file included from C:\Users\XYZ\Documents\Arduino\libraries\arduino_912086\src/LoRa.h:5:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:293:10: error: 'SPCR' was not declared in this scope
In file included from c:\users\xyz\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5\avr\include\avr\io.h:99:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:293:24: error: 'DORD' was not declared in this scope
In file included from C:\Users\XYZ\Documents\Arduino\libraries\arduino_912086\src/LoRa.h:5:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h: In static member function 'static void SPIClass::setDataMode(uint8_t)': C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:298:5: error: 'SPCR' was not declared in this scope
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h: In static member function 'static void SPIClass::setClockDivider(uint8_t)': C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:303:5: error: 'SPCR' was not declared in this scope
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:304:5: error: 'SPSR' was not declared in this scope
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h: In static member function 'static void SPIClass::attachInterrupt()': C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:309:42: error: 'SPCR' was not declared in this scope inline static void attachInterrupt() { SPCR |= _BV(SPIE); }
In file included from c:\users\xyz\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5\avr\include\avr\io.h:99:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:309:54: error: 'SPIE' was not declared in this scope inline static void attachInterrupt() { SPCR |= _BV(SPIE); }
In file included from C:\Users\XYZ\Documents\Arduino\libraries\arduino_912086\src/LoRa.h:5:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h: In static member function 'static void SPIClass::detachInterrupt()': C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:310:42: error: 'SPCR' was not declared in this scope inline static void detachInterrupt() { SPCR &= ~_BV(SPIE); }
In file included from c:\users\xyz\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5\avr\include\avr\io.h:99:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:310:55: error: 'SPIE' was not declared in this scope inline static void detachInterrupt() { SPCR &= ~_BV(SPIE); }
In file included from C:\Users\XYZ\Documents\Arduino\libraries\arduino_912086\src/LoRa.h:5:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h: At global scope: C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\libraries\SPI/SPI.h:322:17: error: conflicting declaration 'SPIClass SPI' extern SPIClass SPI;
In file included from C:\Users\XYZ\Documents\Arduino\LoRaSender\LoRaSender.ino:1:0: C:\Users\XYZ\Documents\Arduino\libraries\arduino_215513\src/tinySPI.h:54:16: error: 'SPI' has a previous declaration as 'tinySPI SPI' extern tinySPI SPI;
In file included from C:\Users\XYZ\Documents\Arduino\LoRaSender\LoRaSender.ino:2:0: C:\Users\XYZ\Documents\Arduino\libraries\arduino_912086\src/LoRa.h:30:18: error: conflicting return type specified for 'virtual size_t LoRaClass::write(const uint8_t*, size_t)' virtual size_t write(const uint8_t *buffer, size_t size);
In file included from C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\cores\tiny/Stream.h:24:0,
C:\Users\XYZ\AppData\Local\Arduino15\packages\digistump\hardware\avr\1.6.7\cores\tiny/Print.h:75:18: error: overriding 'virtual void Print::write(const uint8_t*, size_t)'
C:\Users\XYZ\Documents\Arduino\LoRaSender\LoRaSender.ino: In function 'void setup()': LoRaSender:8: error: no match for 'operator!' (operand type is 'TinyDebugSerial') while (!Serial);
C:\Users\XYZ\Documents\Arduino\LoRaSender\LoRaSender.ino:8:10: note: candidate is: C:\Users\XYZ\Documents\Arduino\LoRaSender\LoRaSender.ino:8:10: note: operator!(bool) C:\Users\XYZ\Documents\Arduino\LoRaSender\LoRaSender.ino:8:10: note: no known conversion for argument 1 from 'TinyDebugSerial' to 'bool' Using library arduino_215513 at version 1.1.1 in folder: C:\Users\XYZ\Documents\Arduino\libraries\arduino_215513 |
It would be great to have it running on a cheap /small chip. people over ttnforums have it running already... https://www.thethingsnetwork.org/forum/t/attiny85-rfm95-temperature-sensor/11211 and this library: https://github.com/ClemensRiederer/TinyLoRa-BME280_v1.1 the above output is for the lorasender arduino sketch: #include <tinySPI.h> void setup() { Serial.println("LoRa Sender"); // override the default CS, reset, and IRQ pins (optional) /* if (!LoRa.begin(866E6)) { } void loop() { // send packet counter++; delay(5000); |
iotlearner0level 3Dtj |
3Dtj To be honest, i gave up. instead i went for stm32/bluepill board which is cheap yet quite powerful and has lots of gpio pins and also spi/i2c/usb/can etc. I used the popular LMIC library (for LoRaWAN, TTN and not just sender/receiver). there were some problems initially, but they were sorted out after some help from the forums. i would recommend this to begin with: https://www.thethingsnetwork.org/labs/story/a-cheap-stm32-arduino-node |
Thanks! I'm reviewing the links that you posted for Clemens Riederer and I have to believe that if he got his project working then I should be able to get Sandeep's code to run off of the ATTiny. I'll check the stm32 suggestion too. |
3Dtj Please keep us informed. however, i think the real power of lora is the loraWan "network" That makes it "internet" of things. for point-to-point connections, there are many cheaper alternatives. ATtiny85 has limited number of pins. so even if you get it running, i'm not sure if that will be useful for sending any practical data, if cheap is your goal. Some people suggested attiny84, apparentlly, not that popular in my country i can get bluepill cheaper. |
Agree on the leveraging the network which is my goal. I just wanted to
ensure I could accomplish the supposedly simple step of utilizing the
ATtiny85 in place of the Ardunio UNO before tackling the LoRaWAN
challenge. :)
…On Tue, May 1, 2018 at 12:47 PM, IoT learner 0 level < ***@***.***> wrote:
3Dtj
Please keep us informed. however, i think the real power of lora is the
loraWan "network" That makes it "internet" of things. for point-to-point
connections, there are many cheaper alternatives. ATtiny85 has limited
number of pins. so even if you get it running, i'm not sure if that will be
useful for sending any practical data, if cheap is your goal. Some people
suggested attiny84, apparentlly, not that popular in my country i can get
bluepill cheaper.
if you want something which works on AT commands directly over serial, i
think they are somewhat costlier. The things network sometimes behaves
wierd, but i think if data reaches the network, then there are many
"integrations" so it is easier to work. This is one advantage over point to
point.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AgcOLaI0fkUlROkC08bA_IeZxYJ4QLFVks5tuJG0gaJpZM4PYRgy>
.
|
ok, point taken. i applied similar approach too ;-) With all that said, i would say that i'm still interested! |
I'm still stuck even though I have everything wired up. I'm checking
connections, components, etc.
Since we have to compile the sketch to the ATtiny, do you think we would
need the actual SPI library code included since the ATtiny is unable to
reach back to the library folder as would be the case if using an Arduino
connected to a PC? That's what I'm pondering as the problem. Thoughts?
…On Wed, May 2, 2018 at 2:17 PM, IoT learner 0 level < ***@***.***> wrote:
ok, point taken. i applied similar approach too ;-) With all that said, i
would say that i'm still interested!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AgcOLbTdWYlyUjIyC34ga1tiMIBhDhzPks5tufhHgaJpZM4PYRgy>
.
|
Hey I got the thing to work! I pinged cle on TTN about his setup and
discovered that he used the PB1 pin (MISO) to connect to the RFM95's MOSI
terminal. I was originally having a connection go from ATtiny MOSI to the
RFM95 MOSI because that is how it was working when I used the Arduino. I
need to think about why reversing the MISO and MOSI resolves the problem
but hey it works.
https://www.thethingsnetwork.org/forum/t/attiny85-rfm95-temperature-sensor/11211/48
…On Wed, May 2, 2018 at 2:17 PM, IoT learner 0 level < ***@***.***> wrote:
ok, point taken. i applied similar approach too ;-) With all that said, i
would say that i'm still interested!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AgcOLbTdWYlyUjIyC34ga1tiMIBhDhzPks5tufhHgaJpZM4PYRgy>
.
|
thanks for sharing. i would try that in a month or so when i have some more time....i think it is a great news. hope to make something useful. Attiny85 is quite cheap and really tiny ;-) |
Hi, I am trying to use the ATTINY85 with my sx1276 transceiver. I have already tried the simple receiver and sender code by Sandeep and it worked fine using two Arduino boards at both ends. Thanks! Update: It worked after I powered the Attiny with 3.3V instead of 5V. |
Hi, and thanks for the LoRa library. it can works with ATtiny13 / 45 / 85 ?
Thanks.
The text was updated successfully, but these errors were encountered: