Commit graph

140 commits

Author SHA1 Message Date
Ken
22d4535e79 Fix EEPROM saving issue when issuing a RESET command via a serial terminal. 2019-10-30 01:00:35 -04:00
5e69da1139 Added serial feedback for trigger function #featureadd 2019-10-29 16:49:29 -07:00
81fb71a08a final edit to fix #54 #bugfix 2019-10-29 15:47:23 -07:00
a09a5c8e4e Merge branch 'master' of https://github.com/pyr0ball/pyr0piezo 2019-10-29 15:45:43 -07:00
Vsevolod Merenkov
8fea926ace Fixed config reset #54 #bugfix 2019-10-30 00:54:14 +03:00
4857972689 Added blank ino file for compatibility with arduino ide #featureadd 2019-10-29 13:43:55 -07:00
Alan Weinstock
db1215db93
Merge pull request #51 from foodbandlt/bugfix
Fix clearing stored config on restore
2019-10-28 08:29:43 -07:00
Foodbandlt
62770a65d8 Fix clearing stored config on restore 2019-10-28 00:40:50 -04:00
266ae5cd9e fixed definition preventing serial response in #49 #bugfix 2019-10-27 16:47:30 -07:00
f8efc3d192 Adds 1 to the blinkcount integer, trying to fix #49 #bugfix 2019-10-25 21:18:33 -07:00
5cbd1ae131 Merge branch 'master' of https://github.com/pyr0ball/pyr0piezo 2019-10-11 11:05:55 -07:00
e5e1458391 Firmware shipped with Beta2 (v2.1.0) #changelog 2019-10-08 20:59:29 -07:00
Vsevolod Merenkov
14032ba325 analogWrite is replaced with native phase correct PWM, 4kHz 10-bit on comparator and 16kHz 8-bit on voltage follower #changelog 2019-10-05 19:49:53 +03:00
9126cd71a4 code formatting 2019-10-02 18:51:59 -07:00
ecf28d8972 Code formatting unified 2019-10-02 18:46:41 -07:00
Vsevolod Merenkov
51d734986b Fixed internal oscillator frequency configuration on ATmega88P, added configuration for ATmega328PB #changelog 2019-09-30 03:06:15 +03:00
Vsevolod Merenkov
8d5fb81219 Fixed serial command for voltmeter constant, added EEPROM support for it #bugfix 2019-09-30 03:04:06 +03:00
Vsevolod Merenkov
6976b3908d Removed old debug output define and sensor trigger debug output, modified VComp and VFol output to mV instead of 10-bit number #changelog 2019-09-30 03:02:14 +03:00
Vsevolod Merenkov
e029364cdc Reverted voltmeter code #bugfix 2019-09-30 02:56:24 +03:00
Vsevolod Merenkov
a24e2ba970 Merge branch 'master' of https://github.com/pyr0ball/pyr0piezo 2019-09-30 02:52:11 +03:00
056321a9e2 added compiled firmware for m328pb - v2.1.4 2019-09-26 15:54:55 -07:00
4ff41f18ce Exported compiled firmware for m88p - v2.1.4 #featureadd 2019-09-26 15:43:08 -07:00
55e2042925 fixed syntax error in includes section 2019-09-26 15:42:33 -07:00
Vsevolod Merenkov
1d805b1ced Fix for serial terminal line break symbol #bugfix 2019-09-27 01:09:05 +03:00
9f1d5dfb6c fixed variable type for vm-constant serial input #bugfix 2019-09-25 15:33:23 -07:00
aa6e3148a2 slight change in comment structure 2019-09-25 14:44:53 -07:00
e416f14072 Added input parameter for vref constant #featureadd
Added an option to change the vref constant over serial
2019-09-25 14:43:53 -07:00
a58a7d029f removed duplicate definition #bugfix 2019-09-25 14:35:51 -07:00
d00b0d078a fixed variable typo 2019-09-25 14:20:40 -07:00
5dd279775a Cleanup remaining merge files #changelog 2019-09-25 14:07:58 -07:00
f4af33fe75 updated serial input explaination to match new schema #featureadd 2019-09-25 14:01:43 -07:00
bf33ef43d7 migrated vscode comfig files 2019-09-25 13:22:24 -07:00
6618f35f7d restructured AVR firmware directory for vscode/PIO #changelog 2019-09-25 13:18:47 -07:00
59387f8502 actually added some of the changes intended for previous commit 2019-09-25 13:12:25 -07:00
9ce36b8607 more syntax fixes (from merge) #changelog 2019-09-25 13:10:57 -07:00
26d7a978d3 syntax cleanup #changelog 2019-09-25 13:09:09 -07:00
9e885f316e complete overhaul of serial input and debug output #featureadd
Input is now parsed without the "<,>" characters
2019-09-25 13:02:31 -07:00
5d72a5e817 Added EEPROM support for storing nvol settings #featureadd 2019-09-25 12:55:39 -07:00
9f172f1c18 synced nomenclature for vfollower variables #bugfix 2019-09-25 12:48:00 -07:00
Vsevolod Merenkov
4165075fa0 Updated gitignore, removed unnecessary files #changelog 2019-09-25 21:27:34 +03:00
Vsevolod Merenkov
14651c0d8a Merge branch 'loredans-additions' of https://github.com/pyr0ball/pyr0piezo 2019-09-25 21:07:39 +03:00
40b20c0670 fixed typo #changelog 2019-09-25 09:47:14 -07:00
a0d6b1d178 Merge branch 'master' of https://github.com/pyr0ball/pyr0piezo 2019-09-24 19:36:21 -07:00
2bbc20ff4d added explaination on how to fine-tune VccMeter. #changelog
Reshuffled some of the other parts of the readVcc function
moved MUX setup to the void setup function
2019-09-24 19:33:22 -07:00
Vsevolod Merenkov
6b9ea8ef06 Saving settings to EEPROM and other IMO sensible changes 2019-09-25 03:53:27 +03:00
cdae15c99a Fixed serial input updating the wrong variable #bugfix 2019-09-24 14:40:55 -07:00
Vsevolod Merenkov
b35e11696e Initial PlatformIO conversion 2019-09-24 23:44:13 +03:00
4d8466d79a added usage output to serial by sending <HELP> #featureadd 2019-08-30 11:03:01 -07:00
fd172492d7 Added gain factor to serial debug output #featureadd 2019-08-29 11:53:56 -07:00
952a1cdb5f Added debug output to trigger function #featureadd 2019-08-29 11:53:06 -07:00
b207482bc1 fixed definition parameter for I2C config #bugfix 2019-08-29 11:50:31 -07:00
afad0a1d88 commented out main loop trigger reset #bugfix
After switching to the new scheduler, the main loop was resetting the
trigger too quickly. Migrating reset to the pulse trigger function
instead
2019-08-29 11:48:14 -07:00
29fd45db23 Changed compiler behavior for i2c. I2C library is still broken
- Firmware does still compile correctly when I2C is disabled
2019-07-19 15:05:17 -07:00
56c06008d4 Migrated configs to separate header file, made adjustment to definition 2019-07-19 15:04:01 -07:00
95ea534381 Added i2c input handler for long variable
- Progress on https://github.com/pyr0ball/pyr0piezo/issues/22
2019-07-06 03:02:07 -07:00
7877456277 Changed compiler structure for including I2C 2019-07-05 23:51:58 -07:00
513d03a4bf Complete overhaul of i2c code, created library structure
- Progress on https://github.com/pyr0ball/pyr0piezo/issues/30
 - ToDo: Create master library for easy integration with other firmwares
2019-07-05 23:48:38 -07:00
dc9ef32e5b Created variable for voltmeter constant, fixed whitespace a bit 2019-07-05 23:47:17 -07:00
0b1dbeb237 Switched to task scheduler library for faster interrupt processing 2019-07-05 22:03:49 -07:00
c223240210 switched to faster digitalWrite function for interrupt function 2019-07-01 16:58:33 -07:00
20454e7ffb removed last remaining float, cleaned up unused vars 2019-06-28 16:36:49 -07:00
f745940904 Fixed "Flappy DAC" bug in rev.2.x.x firmware
- Fixed https://github.com/pyr0ball/pyr0piezo/issues/26
  - Changed adjustment logic to be calculated based on Vcc rather than ADC reference, which was causing issues in the mathematical functions, resulting in negative number outputs
 - Migrated to internal vRef, fixed https://github.com/pyr0ball/pyr0piezo/issues/23
 - Eliminated floats, fixing https://github.com/pyr0ball/pyr0piezo/issues/31
  - This required addition of long, however
 - Fixed https://github.com/pyr0ball/pyr0piezo/issues/20
2019-06-27 01:07:44 -07:00
1d098f184b fixed some ordering causing definition issues
- started on https://github.com/pyr0ball/pyr0piezo/issues/30
2019-06-26 10:40:02 -07:00
4b2186aaf7 changed adc calculations to use Vin reference 2019-06-11 13:08:29 -07:00
7f1985d0cd fixed names for new files 2019-06-10 21:24:59 -07:00
6567b50ddb Separated functions and definitions
- added header and cpp files
   - pin assignments
   - volatile variables
   - general functions
   - serial functions
   - i2c functions
2019-06-10 21:19:47 -07:00
b5883af901 for v2.x this fixes https://github.com/pyr0ball/pyr0piezo/issues/28 2019-06-10 18:04:48 -07:00
4c35d52259 Set I2C input to be toggled by def
-Synced Comp/Vref til #24 is fixed
2019-04-22 16:52:30 -07:00
37f7d4d085 Added function to alert the user when calibrating 2019-04-22 16:06:40 -07:00
Alan Weinstock
c82c3e9bf5
Merge branch 'master' into MinorOptimizations 2019-04-22 15:47:20 -07:00
5a6d5ca7db Fixes for oscillating PWM output
- Added hysteresis input for UART/I2C
- Fixed example to show correct command (VADJ vs VADJH)
- added TRG_DUR to the interrupt function
- Migrated math for 8-10bit ADC to a different function
- Organized/added debug serial output
- fixed line begin whitespace
2019-04-22 15:32:26 -07:00
Foodbandlt
0e318eab7c Fixing debug vars in case they ever want to be used again
Integer result needs to be cast to a float to obtain a float result from division.
2019-04-22 03:31:52 -04:00
Foodbandlt
e16c35cd32 Converting to defines and else ifs
Defines save flash and progmem and elseifs increase execution speed on code repeated on every loop.

Side note, something funky happened with the spacing.  Fixed it, but it's slightly different than what it was before.
2019-04-22 03:25:52 -04:00
5ff215c0da migrated floats to #define values
for more efficient compilation, switched float values set in initial config to definitions that are immediately computed into integers, which cut down on flash usage. also removed non-working debug float outputs for VCompRef and vAdjRead as stated in https://github.com/pyr0ball/pyr0piezo/issues/20
2019-04-21 23:44:31 -07:00
95ea64a822 fixed unary operators for adjustment logic
- Switched unary operators to correct syntax (+= vs =+) Should fix oscillation noted in https://github.com/pyr0ball/pyr0piezo/issues/24
- Added software hysteresis to the adjustment function. Referenced in https://github.com/pyr0ball/pyr0piezo/issues/24
- Fixed notes to show the correct gain factors
2019-04-21 23:02:16 -07:00
bd64d8f707 fixed syntax preventing compilation 2019-03-15 22:17:51 -07:00
55c6f867c2 Added rudimentary i2c listener, fixed loop
Rearranged a couple of functions from the serial input function to be
back in the loop where they belong. Added a rudimentary i2c listener
that should allow for parameter updates, but will only reply with "OK"
for now

Progress on:
 - https://github.com/pyr0ball/pyr0piezo/issues/2
 - https://github.com/pyr0ball/pyr0piezo/issues/22
2019-03-15 19:30:05 -07:00
1a06027bc1 Replaced serial parser, verified parameters update
Progress on https://github.com/pyr0ball/pyr0piezo/issues/2

See notes on wiki for serial input format
2019-03-13 23:01:43 -07:00
8084e65eeb Updated library and components 2019-03-09 00:17:59 -08:00
e8300c9eb4 Renamed Rev.1.x.x sketch to match folder 2019-03-08 13:09:18 -08:00
2297f15207 Fixed PWM output syntax
Fixes issue https://github.com/pyr0ball/pyr0piezo/issues/19
2019-03-08 13:08:04 -08:00
200702d12d removed unused firmware, renamed existing to follow nomenclature 2019-02-25 14:02:36 -08:00
ec88e787e9 compiled 1.0.2 firmware with fixed output pins 2019-02-23 23:31:29 -08:00
4548a2ed8f fixed pin assignment from debug edit 2019-02-21 02:03:11 -08:00
f9c1e4ff4e Added the serial input function to the loop 2019-02-19 01:30:09 -08:00
7999321f8c Added basic serial input to modify parameters
- Partially addresses https://github.com/pyr0ball/pyr0piezo/issues/1
 - Partially addresses https://github.com/pyr0ball/pyr0piezo/issues/2
 - Added serial input parsing for V_Follow, V_Comp, and Gain_Factor
 - Example serial input: VFOLH2.35 VFOLL1.80 VCOMPH2.75 VCOMPL2.54 GFACT2
2019-02-19 01:07:42 -08:00
055ab3c09e First draft of firmware v2.0.0
- Re-wired for rev.2.0.0 board pinout
 - Added functions for follower/comparator adjustment via PWM
 - Re-tasked resistor ladder to gain factor adjustment
 - Migrated calculations to interger (away from floats)
2019-02-18 17:49:11 -08:00
7fd60d1d74 Fixed https://github.com/pyr0ball/pyr0piezo/issues/17
- Changed output logic to be active low
 - Compiled new firmware hex file for this change (v1.0.2)
 - Moved original firmware v1.0.0 to correct folder
2019-02-18 17:33:07 -08:00
201ecde19e Added firmware hex file used in alpha boards
This is the firmware loaded on boards shipped out to alpha testers
2019-02-14 21:46:38 -08:00
26f0e13818 Added folder structure for firmware source 2019-02-11 12:18:32 -08:00