DIY DTG - Build your own Digital T-Shirt Printer

  • 1
  • 5
  • 6
  • 7
  • 8
  • 9
 
lcturkey
Posts: 24
Joined: Sat Oct 15, 2016 5:49 am

Re: Arduino Setup and Connecting to Epson printer

Mon Oct 24, 2016 1:41 pm

hi to all,
when I try to upload the code it gives this error. do you know why ?

Thank you

Arduino: 1.6.7 (Windows 8.1), Board: "Arduino/Genuino Uno"
C:\Users\Levent\AppData\Local\Temp\Temp1_OpenDTG_DIY_DTG_BUILD_00008 (1).zip\OpenDTG_DIY_DTG_BUILD_00008\OpenDTG_DIY_DTG_BUILD_00008.ino:25:20: fatal error: header.h: No such file or directory
 #include "header.h"
                    ^
compilation terminated.
exit status 1
Error compiling.
  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.
 
kilerm2
Contributor
Posts: 128
Joined: Wed Aug 10, 2016 9:44 am

Re: Arduino Setup and Connecting to Epson printer

Mon Oct 24, 2016 1:47 pm

lcturkey wrote:
hi to all,
when I try to upload the code it gives this error. do you know why ?

Thank you

Arduino: 1.6.7 (Windows 8.1), Board: "Arduino/Genuino Uno"
C:\Users\Levent\AppData\Local\Temp\Temp1_OpenDTG_DIY_DTG_BUILD_00008 (1).zip\OpenDTG_DIY_DTG_BUILD_00008\OpenDTG_DIY_DTG_BUILD_00008.ino:25:20: fatal error: header.h: No such file or directory
 #include "header.h"
                    ^
compilation terminated.
exit status 1
Error compiling.
  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

the header.h file is missing in your folder ?
 
lcturkey
Posts: 24
Joined: Sat Oct 15, 2016 5:49 am

Re: Arduino Setup and Connecting to Epson printer

Mon Oct 24, 2016 2:02 pm

these are my files and this is the last error code
Arduino: 1.6.7 (Windows 8.1), Board: "Arduino/Genuino Uno"
In file included from C:\Users\Levent\Desktop\New folder (4)\OpenDTG_DIY_DTG_BUILD_00008 (1)\OpenDTG_DIY_DTG_BUILD_00008\OpenDTG_DIY_DTG_BUILD_00008.ino:29:0:
C:\Users\Levent\Documents\Arduino\libraries\Encoder/Encoder.h: In function 'void __vector_1()':
Encoder.h:185: error: 'static void Encoder::update(Encoder_internal_state_t*)' is private
  static void update(Encoder_internal_state_t *arg) {
              ^
Encoder.h:915: error: within this context
 ISR(INT0_vect) { Encoder::update(Encoder::interruptArgs[SCRAMBLE_INT_ORDER(0)]); }
                                                                               ^
C:\Users\Levent\Documents\Arduino\libraries\Encoder/Encoder.h: In function 'void __vector_2()':
Encoder.h:185: error: 'static void Encoder::update(Encoder_internal_state_t*)' is private
  static void update(Encoder_internal_state_t *arg) {
              ^
Encoder.h:918: error: within this context
 ISR(INT1_vect) { Encoder::update(Encoder::interruptArgs[SCRAMBLE_INT_ORDER(1)]); }
                                                                               ^
C:\Users\Levent\Desktop\New folder (4)\OpenDTG_DIY_DTG_BUILD_00008 (1)\OpenDTG_DIY_DTG_BUILD_00008\OpenDTG_DIY_DTG_BUILD_00008.ino: At global scope:
OpenDTG_DIY_DTG_BUILD_00008:51: error: 'Bounce' does not name a type
     Bounce debouncer_inBtn = Bounce();
     ^
OpenDTG_DIY_DTG_BUILD_00008:53: error: 'Bounce' does not name a type
     Bounce debouncer_outBtn = Bounce();
     ^
OpenDTG_DIY_DTG_BUILD_00008:55: error: 'Bounce' does not name a type
     Bounce debouncer_backStop = Bounce();
     ^
C:\Users\Levent\Desktop\New folder (4)\OpenDTG_DIY_DTG_BUILD_00008 (1)\OpenDTG_DIY_DTG_BUILD_00008\OpenDTG_DIY_DTG_BUILD_00008.ino: In function 'void setup()':
OpenDTG_DIY_DTG_BUILD_00008:84: error: 'debouncer_inBtn' was not declared in this scope
   debouncer_inBtn.attach(inBtn);
   ^
OpenDTG_DIY_DTG_BUILD_00008:90: error: 'debouncer_outBtn' was not declared in this scope
   debouncer_outBtn.attach(outBtn);
   ^
OpenDTG_DIY_DTG_BUILD_00008:96: error: 'debouncer_backStop' was not declared in this scope
   debouncer_backStop.attach(backStop);
   ^
C:\Users\Levent\Desktop\New folder (4)\OpenDTG_DIY_DTG_BUILD_00008 (1)\OpenDTG_DIY_DTG_BUILD_00008\OpenDTG_DIY_DTG_BUILD_00008.ino: In function 'void loop()':
OpenDTG_DIY_DTG_BUILD_00008:147: error: 'debouncer_inBtn' was not declared in this scope
     debouncer_inBtn.update();
     ^
OpenDTG_DIY_DTG_BUILD_00008:148: error: 'debouncer_outBtn' was not declared in this scope
     debouncer_outBtn.update();
     ^
OpenDTG_DIY_DTG_BUILD_00008:149: error: 'debouncer_backStop' was not declared in this scope
     debouncer_backStop.update();
     ^
exit status 1
'static void Encoder::update(Encoder_internal_state_t*)' is private
  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.
You do not have the required permissions to view the files attached to this post.
 
User avatar
Andy
Site Admin
Topic Author
Posts: 1326
Joined: Mon Jul 25, 2016 5:59 pm

Re: Arduino Setup and Connecting to Epson printer

Mon Oct 24, 2016 2:27 pm

The header.h is in the zip file. 

It's hard for me to troubleshoot Arduino IDE issues not knowing your system setup. 

If you are unfamiliar with using the Arduino please read: https://www.arduino.cc/en/Guide/HomePage
 
lcturkey
Posts: 24
Joined: Sat Oct 15, 2016 5:49 am

Re: Arduino Setup and Connecting to Epson printer

Mon Oct 24, 2016 2:31 pm

thank you for your answer andy.
sorry I didnt understand why the header file must be in the zip file ?

could you write me your file list while uploading the code ? Encoder and Bounce already in my library.
 
tjello
Contributor
Posts: 81
Joined: Tue Sep 27, 2016 12:07 pm
Location: Oslo - Norway

Re: Arduino Setup and Connecting to Epson printer

Tue Oct 25, 2016 3:17 am

Read the "Why we need header file" section here: http://www.cplusplus.com/forum/articles/10627/

Looks like you're either not including the header file or that it is not added to your projects include path?
 
lcturkey
Posts: 24
Joined: Sat Oct 15, 2016 5:49 am

Re: Arduino Setup and Connecting to Epson printer

Tue Oct 25, 2016 3:25 am

Ok i will read it thank you.
i test the arduino without connecting it to printer pe sensor. i can send the plate back and front also the back switch is working well but i cant read encoder signal

is it becouse of that pin 10 not connectted to pe sensor ? How can i test the encoder signal without printer ?
 
tjello
Contributor
Posts: 81
Joined: Tue Sep 27, 2016 12:07 pm
Location: Oslo - Norway

Re: Arduino Setup and Connecting to Epson printer

Tue Oct 25, 2016 5:53 am

No need to send the same as a pm.. I read the forum ;)

I can't answer any of the hardware questions as I'm new to dtg diy myself.. but I'm a c++ programmer.. haven't worked with android before tho, the ino files are doing some include magic so there might be something else wrong with your setup..
 
lcturkey
Posts: 24
Joined: Sat Oct 15, 2016 5:49 am

Re: Arduino Setup and Connecting to Epson printer

Tue Oct 25, 2016 11:07 am

thank you for your answer tjello,

my screenshoot is like that right now ? anything wrong ?

error code,
Arduino: 1.6.12 (Windows 8.1), Board: "Arduino/Genuino Uno"
In file included from C:\Users\Levent\Desktop\New folder (4)\OpenDTG_DIY_DTG_BUILD_00008\OpenDTG_DIY_DTG_BUILD_00008.ino:33:0:
C:\Users\Levent\Documents\Arduino\libraries\Encoder/Encoder.h: In function 'void __vector_1()':
Encoder.h:185: error: 'static void Encoder::update(Encoder_internal_state_t*)' is private
  static void update(Encoder_internal_state_t *arg) {
              ^
Encoder.h:915: error: within this context
 ISR(INT0_vect) { Encoder::update(Encoder::interruptArgs[SCRAMBLE_INT_ORDER(0)]); }
                                                                               ^
C:\Users\Levent\Documents\Arduino\libraries\Encoder/Encoder.h: In function 'void __vector_2()':
Encoder.h:185: error: 'static void Encoder::update(Encoder_internal_state_t*)' is private
  static void update(Encoder_internal_state_t *arg) {
              ^
Encoder.h:918: error: within this context
 ISR(INT1_vect) { Encoder::update(Encoder::interruptArgs[SCRAMBLE_INT_ORDER(1)]); }
                                                                               ^
exit status 1
'static void Encoder::update(Encoder_internal_state_t*)' is private
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
You do not have the required permissions to view the files attached to this post.
 
lcturkey
Posts: 24
Joined: Sat Oct 15, 2016 5:49 am

Re: Arduino Setup and Connecting to Epson printer

Tue Oct 25, 2016 11:30 am

finally I could upload the code to Arduino. the problem was because of the library adress it wasnt installed to arduino folder that it why I was getting error
  • 1
  • 5
  • 6
  • 7
  • 8
  • 9

Who is online

Users browsing this forum: No registered users and 1 guest