Artekit lightsaber

Hi,

I managed to select artekit board but whe I try to upload I get " Error compiling for board artekit propboard. Also whet I look at serial monitor it says 00000331 (ERROR) Error opening configuration file. I can use arduino in a basic way but I dont no where to go from here. Any suggestions?

Hi @kylo,

Those are two different errors:

Please enable the following two options from the File->Preferences menu, the re-compile and if it shows errors, please paste them in a post.

This probably means that you have purchased the PropBoard with the PBSaber firmware, or that you managed to download it to the board.

In either case it’s telling that the config.ini file is missing in the SD card (required to run a lightsaber). That is a message that is output from the board and has nothing to do with Arduino compilation errors.

Hi,
thanks for reply, when I try to compile I get :

exec: “C:\Users\starkiller\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++”: file does not exist
Error compiling for board Artekit PropBoard.

I also renamed the “config_demo_ledstrip” to “config_ini”

I feel I might be out of my depth with this programing!? Thankyou for your reply. regards, Ben.

Hi @kylo,

  1. What have you done in order to install the PropBoard into the Arduino IDE? Have you followed these instructions?

  2. The file must be named config.ini

Hi,

thankyou for your replys I very much appreciate it. - Ive managed to get the config file read in serial monitor but I think the main problem is not being able to download PBSaber version v1.0.3?

regards Ben.

Hello @kylo,

I think we are already installing v1.0.3 in the boards. You can check the firmware version with the serial console (the first message you see is the firmware version). If you want to fiddle with the saber settings then you just need to modify the config.ini file accordingly. In the PBSaber instructions you can see all the different options.

If you want to modify the firmware, and the compilation is not working, I will need to know the version of the Arduino IDE you are using and what you have done to install the PropBoard support into the IDE (as previously asked).

Thanks.

Hi,
in the serial monitor it says its PBSaber v1.0.0, but in the instructions it says : Note: PBSaber needs version v1.0.3 (or higher) core files. In the boards manager I try to download V 1.0.3 it reads " Error downloading https://www.artekit.eu/software/propboard/artekit-propboard-1.0.3.zip. I can download V 1.0.0 and V 1.0.2 from boards manager.
When I name the config file: " config.ini " it doesnt read its contents and says (ERROR) error reading config file, but when I name it : “config” it reads it fine.
I bought the board from JQ Sabers (UK).
regards, Ben.

Hi, sorry I also tried V1.0.0 in boards manager and followed the intsructions. Thanks.

Hi, Ive managed to upload using: Arduino 1.8.9, with board manager v 1.0.0. -and using the original code( sneak preview) copied and pasted into sketch. I think its Doc version: 1.1-For SW version: 1.0.3 (Beta)-For HW version: 1.7 (Beta). I havent tested yet but I assume it will only work with HBLeds? I’m using Neopixels, WS2812. Sorry I thrown alot of information at you!
regards, Ben.

Hi @kylo,

There may be a little confusion about what is what. Let’s clarify that first.

  • v1.0.3 are the core files needed to compile code for the PropBoard. Much like the core files of an original Arduino. These core files can be downloaded from the board manager as usual.
  • PBSaber is a firmware that runs in the PropBoard and does “the lightsaber”, otherwise the PropBoard does nothing, just like an empty Arduino.
  • PBSaber requires the core files v1.0.3 to be able to compile.
  • PBSaber has a version number too, that is v1.0.0 (sorry for the confusion). So you have (or had) the last version installed in your board.
  • PBSaber uses a configuration file (config.ini in the SD card) just like other lightsaber boards you may be used to work with.
  • PBSaber uses the serial console to output some messages that can help to understand why something isn’t working (as you have seen so far).

I’ve just tried to install the v1.0.3 version on a clean installation and it worked.

You can try the following that seemed to work with other users that have had problems installing v1.0.3:

  1. go to %LocalAppData%\Arduino15\staging\packages
  2. delete all the artekit* zip files you have there.
  3. Try to launch the Arduino IDE and to download the PropBoard board package from the boards manager again.
  4. If it doesn’t work, repeat 1) and 2) and then go to %LocalAppData%\Arduino15
  5. delete all package_artekit_index.* files and try again.

That is just an old demo version that is not the complete PBSaber. The PBSaber files can be download from here or the GitHub repo.

So, at this point you need to:

  1. update the Arduino IDE to use core files v1.0.3 (from the board manager).
  2. download the PBSaber files, compile them and install the firmware in the board (from the Arduino IDE).
  3. use the provided SD files (that includes the config.ini file and sound files) that you can find in the SD folder within the PBSaber files.

Let focus on point 1 and then move forward.

Hi,

Ive managed to install V1.0.3 from boards manager but now I can no longer get the serial monitor and the examples in Arduino IDE. When I compileI get : compilation terminated.exit status 1 PBSaber.h: No such file or directory. I can upload Timercounter and debug h?
regards, Ben.

Hi @kylo,

Great!

What does this mean?

In any case, for point 2: please download the PBSaber zip file from the links above and unzip it. Enter in the PBSaber folder and double click the PBSaber.ino file. This should open the Arduino interface where you can compile and download the firmware.

Hi, I ve managed to upload code! But having trouble activating sound. The serial monitor only recognises “config” instead of “config.ini”. Ive tried to follow instructions. In serial monitor it responds to button push but when I press “on” button it states: (INFO) Entering state: IGNITION. (INFO) Entering state:OFF. (INFO) Entering state: IDLE OFF. - this is with one button press. I ve also checked board with multi meter and there’s power going to board. Sorry if Im asking alot of questions!?
regards, Ben.

Hi @kylo,

The serial monitor only shows you messages; it cannot “recognize” files. So I don’t clearly understand what you are trying to explain.

It may be that the Windows file explorer is hiding the file extension? Try to enable it like this: https://www.itsupportguides.com/knowledge-base/windows-7/windows-7-how-to-display-file-extensions/

After that, check that the file is called config.ini and not config.ini.ini or otherwise.

For the other problem be sure you have copied the entire SD folder contents into the SD card. Otherwise please copy and post all the text you see in the serial monitor in a forum post.

Thanks.

Hi,

that worked, thanks. Im still not getting any life from the board, no led strip or sound? This is the serial monitor with me pressing both buttons at the end. Just one press on each button…

[ 00000150 ] (INFO) - PBSaber v1.0.0 -
[ 00000150 ] (INFO) Configuration file is config.ini
[ 00000769 ] (INFO) Mapping configuration file
[ 00000771 ] (INFO) Mapping done in 2ms
[ 00000771 ] (INFO) Initializing audio
[ 00000873 ] (INFO) Reading hardware configuration
[ 00000874 ] (INFO) On/Off button on pad 3
[ 00000874 ] (INFO) On/Off logic is active low
[ 00000874 ] (INFO) FX button on pad 2
[ 00000878 ] (INFO) FX logic is active low
[ 00000882 ] (INFO) Reading general settings
[ 00000887 ] (WARNING) profile_count value = 0. Using autodetection
[ 00000892 ] (WARNING) low_power value: 0
[ 00000895 ] (WARNING) button_debounce value 0. Defaulting to 25
[ 00000901 ] (INFO) Default profile is 1
[ 00000905 ] (INFO) Configuration read in 32 ms
[ 00000909 ] (INFO) Reading profile profile1
[ 00000916 ] (INFO) – Start profile info dump for profile1
[ 00000918 ] (INFO) font_num = 1
[ 00000921 ] (INFO) ignition_duration = 300
[ 00000925 ] (INFO) ignition_mode = scroll
[ 00000929 ] (INFO) retraction_duration = 0
[ 00000933 ] (INFO) retraction_mode = scroll
[ 00000937 ] (INFO) shimmer_mode = random
[ 00000940 ] (INFO) shimmer_color = 160,220,244,0
[ 00000945 ] (INFO) shimmer_freq = 20
[ 00000948 ] (INFO) shimmer_depth = 20
[ 00000952 ] (INFO) clash_mode = flash_flicker
[ 00000956 ] (INFO) clash_color = 255,100,0,0
[ 00000960 ] (INFO) clash_blend = 90
[ 00000963 ] (INFO) clash_freq = 20
[ 00000967 ] (INFO) clash_depth = 0
[ 00000970 ] (INFO) clash_random = yes
[ 00000973 ] (INFO) clash_duration = 150
[ 00000977 ] (INFO) blaster_mode = spark
[ 00000980 ] (INFO) blaster_color = 255,0,0,0
[ 00000985 ] (INFO) blaster_blend = 0
[ 00000988 ] (INFO) blaster_freq = 0
[ 00000991 ] (INFO) blaster_depth = 0
[ 00000995 ] (INFO) blaster_random = no
[ 00000998 ] (INFO) blaster_duration = 750
[ 00001002 ] (INFO) stab_mode = tip_spark
[ 00001006 ] (INFO) stab_color = 240,0,0,0
[ 00001010 ] (INFO) stab_blend = 0
[ 00001013 ] (INFO) stab_freq = 0
[ 00001016 ] (INFO) stab_depth = 40
[ 00001019 ] (INFO) stab_random = no
[ 00001022 ] (INFO) stab_duration = 1000
[ 00001026 ] (INFO) lockup_mode = flash_flicker
[ 00001030 ] (INFO) lockup_color = 223,108,32,0
[ 00001034 ] (INFO) lockup_blend = 100
[ 00001038 ] (INFO) lockup_freq = 20
[ 00001041 ] (INFO) lockup_depth = 0
[ 00001044 ] (INFO) lockup_random = yes
[ 00001048 ] (INFO) lockup_duration = 0
[ 00001052 ] (INFO) – End profile info dump for profile1
[ 00001057 ] (ERROR) blaster_blend value is invalid. Setting it to 100
[ 00001063 ] (ERROR) stab_blend value is invalid. Setting it to 100
[ 00001069 ] (INFO) Reading font1
[ 00001076 ] (INFO) – Start info dump for font1
[ 00001076 ] (INFO) title = Barlow
[ 00001079 ] (INFO) folder = \fonts\Barlow
[ 00001083 ] (INFO) poly = yes
[ 00001086 ] (INFO) boot = \fonts\Barlow\boot.wav
[ 00001090 ] (INFO) ignition = \fonts\Barlow\out\out(1-15).wav
[ 00001096 ] (INFO) retraction = \fonts\Barlow\in\in0(1-2).wav
[ 00001102 ] (INFO) low_power = not present
[ 00001105 ] (INFO) hum = \fonts\Barlow\hum\hum01.wav
[ 00001110 ] (INFO) blaster = \fonts\Barlow\blst\blst0(1-4).wav
[ 00001116 ] (INFO) lock = \fonts\Barlow\lock\lock01.wav
[ 00001121 ] (INFO) swing = \fonts\Barlow\swng\swng(1-16).wav
[ 00001126 ] (INFO) clash = \fonts\Barlow\clsh\clsh(1-16).wav
[ 00001132 ] (INFO) spin = not present
[ 00001135 ] (INFO) stab = \fonts\Barlow\slsh\slsh0(1-4).wav
[ 00001141 ] (INFO) force = \fonts\Barlow\fx\fx0(1-2).wav
[ 00001146 ] (INFO) background = not present
[ 00001150 ] (INFO) name = \fonts\Barlow\font.wav
[ 00001154 ] (INFO) – End info dump for font1
[ 00001158 ] (INFO) Using font Barlow
[ 00001162 ] (INFO) profile1 successfully read in 249 ms
[ 00001167 ] (INFO) Initializing hardware
[ 00001674 ] (INFO) Playing \fonts\Barlow\boot.wav
[ 00001674 ] (INFO) Entering state: OFF
[ 00001674 ] (INFO) Entering state: IDLE OFF
[ 00019671 ] (INFO) Entering state: NEXT PROFILE
[ 00019671 ] (INFO) Reading profile profile1
[ 00019675 ] (INFO) – Start profile info dump for profile1
[ 00019675 ] (INFO) font_num = 1
[ 00019677 ] (INFO) ignition_duration = 300
[ 00019681 ] (INFO) ignition_mode = scroll
[ 00019684 ] (INFO) retraction_duration = 0
[ 00019688 ] (INFO) retraction_mode = scroll
[ 00019692 ] (INFO) shimmer_mode = random
[ 00019696 ] (INFO) shimmer_color = 160,220,244,0
[ 00019700 ] (INFO) shimmer_freq = 20
[ 00019704 ] (INFO) shimmer_depth = 20
[ 00019707 ] (INFO) clash_mode = flash_flicker
[ 00019711 ] (INFO) clash_color = 255,100,0,0
[ 00019716 ] (INFO) clash_blend = 90
[ 00019719 ] (INFO) clash_freq = 20
[ 00019722 ] (INFO) clash_depth = 0
[ 00019725 ] (INFO) clash_random = yes
[ 00019729 ] (INFO) clash_duration = 150
[ 00019732 ] (INFO) blaster_mode = spark
[ 00019736 ] (INFO) blaster_color = 255,0,0,0
[ 00019740 ] (INFO) blaster_blend = 0
[ 00019743 ] (INFO) blaster_freq = 0
[ 00019747 ] (INFO) blaster_depth = 0
[ 00019750 ] (INFO) blaster_random = no
[ 00019754 ] (INFO) blaster_duration = 750
[ 00019758 ] (INFO) stab_mode = tip_spark
[ 00019761 ] (INFO) stab_color = 240,0,0,0
[ 00019765 ] (INFO) stab_blend = 0
[ 00019768 ] (INFO) stab_freq = 0
[ 00019771 ] (INFO) stab_depth = 40
[ 00019774 ] (INFO) stab_random = no
[ 00019778 ] (INFO) stab_duration = 1000
[ 00019781 ] (INFO) lockup_mode = flash_flicker
[ 00019786 ] (INFO) lockup_color = 223,108,32,0
[ 00019790 ] (INFO) lockup_blend = 100
[ 00019793 ] (INFO) lockup_freq = 20
[ 00019797 ] (INFO) lockup_depth = 0
[ 00019800 ] (INFO) lockup_random = yes
[ 00019804 ] (INFO) lockup_duration = 0
[ 00019807 ] (INFO) – End profile info dump for profile1
[ 00019812 ] (ERROR) blaster_blend value is invalid. Setting it to 100
[ 00019818 ] (ERROR) stab_blend value is invalid. Setting it to 100
[ 00019824 ] (INFO) Reading font1
[ 00019831 ] (INFO) – Start info dump for font1
[ 00019832 ] (INFO) title = Barlow
[ 00019835 ] (INFO) folder = \fonts\Barlow
[ 00019839 ] (INFO) poly = yes
[ 00019842 ] (INFO) boot = \fonts\Barlow\boot.wav
[ 00019846 ] (INFO) ignition = \fonts\Barlow\out\out(1-15).wav
[ 00019852 ] (INFO) retraction = \fonts\Barlow\in\in0(1-2).wav
[ 00019857 ] (INFO) low_power = not present
[ 00019861 ] (INFO) hum = \fonts\Barlow\hum\hum01.wav
[ 00019866 ] (INFO) blaster = \fonts\Barlow\blst\blst0(1-4).wav
[ 00019871 ] (INFO) lock = \fonts\Barlow\lock\lock01.wav
[ 00019876 ] (INFO) swing = \fonts\Barlow\swng\swng(1-16).wav
[ 00019882 ] (INFO) clash = \fonts\Barlow\clsh\clsh(1-16).wav
[ 00019887 ] (INFO) spin = not present
[ 00019891 ] (INFO) stab = \fonts\Barlow\slsh\slsh0(1-4).wav
[ 00019896 ] (INFO) force = \fonts\Barlow\fx\fx0(1-2).wav
[ 00019901 ] (INFO) background = not present
[ 00019905 ] (INFO) name = \fonts\Barlow\font.wav
[ 00019910 ] (INFO) – End info dump for font1
[ 00019914 ] (INFO) Using font Barlow
[ 00019917 ] (INFO) profile1 successfully read in 246 ms
[ 00020158 ] (INFO) Playing utility sound sndutil\beep.wav
[ 00020158 ] (INFO) Entering state: IDLE OFF
[ 00023764 ] (INFO) Entering state: IGNITION
[ 00023766 ] (INFO) Entering state: OFF
[ 00023766 ] (INFO) Entering state: IDLE OFF

regards, Ben.

Hi,

its all working!!! thankyou very much for your help, youve been very patient , I really appreciate it. Very glad I found this board! The problem was a tiny bit of wire touching both speaker terminals! Plus reconfig. code. Its a great board with options to code, great idea.

kind regards,

Ben.
may the force be with you…

Hi @kylo,

That’s great!

Happy coding.